@Immutable public class AS2HttpRequestDataProviderInputStream extends Object implements IAS2HttpRequestDataProvider
| Constructor and Description |
|---|
AS2HttpRequestDataProviderInputStream(InputStream aIS)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static AS2HttpRequestDataProviderInputStream |
createForUtf8(String s) |
com.helger.commons.http.HttpHeaderMap |
getHttpHeaderMap() |
InputStream |
getHttpInputStream()
Will return a buffered,
NonClosingInputStream that when closed,
will not close in source stream. |
String |
getHttpRequestMethod() |
String |
getHttpRequestUrl() |
String |
getHttpRequestVersion() |
public AS2HttpRequestDataProviderInputStream(@Nonnull @WillNotClose InputStream aIS) throws IOException, javax.mail.MessagingException
aIS - InputStream to read from. May not be null.IOException - If reading from the Socket failsjavax.mail.MessagingException - If reading the HTTP headers failed@Nonnull public InputStream getHttpInputStream() throws IOException
NonClosingInputStream that when closed,
will not close in source stream. This is useful when working with
java.net.SocketInputStream as close() on a socket stream
closes the SocketgetHttpInputStream in interface IAS2HttpRequestDataProviderInputStreamIOException - in case of error@Nonnull public String getHttpRequestMethod()
getHttpRequestMethod in interface IAS2HttpRequestDataProviderPOST.@Nonnull public String getHttpRequestUrl()
getHttpRequestUrl in interface IAS2HttpRequestDataProvider/as2.@Nonnull public String getHttpRequestVersion()
getHttpRequestVersion in interface IAS2HttpRequestDataProviderHTTP/1.1.@Nonnull public com.helger.commons.http.HttpHeaderMap getHttpHeaderMap()
getHttpHeaderMap in interface IAS2HttpRequestDataProvidernull.@Nonnull public static AS2HttpRequestDataProviderInputStream createForUtf8(@Nonnull String s) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionCopyright © 2013–2022 Philip Helger. All rights reserved.