Class AS2BHttpServerConnection
java.lang.Object
org.apache.hc.core5.http.impl.io.DefaultBHttpServerConnection
org.apache.camel.component.as2.api.io.AS2BHttpServerConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hc.core5.http.HttpConnection,org.apache.hc.core5.http.io.BHttpConnection,org.apache.hc.core5.http.io.HttpServerConnection,org.apache.hc.core5.http.SocketModalCloseable,org.apache.hc.core5.io.ModalCloseable
public class AS2BHttpServerConnection
extends org.apache.hc.core5.http.impl.io.DefaultBHttpServerConnection
-
Constructor Summary
ConstructorsConstructorDescriptionAS2BHttpServerConnection(org.apache.hc.core5.http.config.Http1Config http1Config) AS2BHttpServerConnection(org.apache.hc.core5.http.config.Http1Config http1Config, CharsetDecoder chardecoder, CharsetEncoder charencoder) AS2BHttpServerConnection(org.apache.hc.core5.http.config.Http1Config http1Config, CharsetDecoder chardecoder, CharsetEncoder charencoder, org.apache.hc.core5.http.ContentLengthStrategy incomingContentStrategy, org.apache.hc.core5.http.ContentLengthStrategy outgoingContentStrategy, org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpRequest> requestParserFactory, org.apache.hc.core5.http.io.HttpMessageWriterFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseWriterFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanawaitInput(org.apache.hc.core5.util.Timeout arg0) protected voidbind(org.apache.hc.core5.http.impl.io.SocketHolder arg0) voidclose()voidclose(org.apache.hc.core5.io.CloseMode arg0) protected InputStreamcreateContentInputStream(long arg0, org.apache.hc.core5.http.io.SessionInputBuffer arg1, InputStream arg2) protected OutputStreamcreateContentOutputStream(long arg0, org.apache.hc.core5.http.io.SessionOutputBuffer arg1, OutputStream arg2, org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> arg3) protected org.apache.hc.core5.http.impl.io.SocketHoldervoidflush()org.apache.hc.core5.http.EndpointDetailsorg.apache.hc.core5.http.ProtocolVersionprotected org.apache.hc.core5.http.impl.io.SocketHolderorg.apache.hc.core5.util.Timeoutprotected voidprotected voidbooleanisDataAvailable(org.apache.hc.core5.util.Timeout arg0) booleanisOpen()booleanisStale()voidreceiveRequestEntity(org.apache.hc.core5.http.ClassicHttpRequest request) voidsetSocketTimeout(org.apache.hc.core5.util.Timeout arg0) toString()Methods inherited from class org.apache.hc.core5.http.impl.io.DefaultBHttpServerConnection
bind, bind, onRequestReceived, onResponseSubmitted, receiveRequestHeader, sendResponseEntity, sendResponseHeaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hc.core5.http.io.BHttpConnection
flush, isDataAvailable, isStaleMethods inherited from interface org.apache.hc.core5.http.HttpConnection
close, getEndpointDetails, getLocalAddress, getProtocolVersion, getRemoteAddress, getSSLSession, isOpenMethods inherited from interface org.apache.hc.core5.io.ModalCloseable
closeMethods inherited from interface org.apache.hc.core5.http.SocketModalCloseable
getSocketTimeout, setSocketTimeout
-
Constructor Details
-
AS2BHttpServerConnection
public AS2BHttpServerConnection(org.apache.hc.core5.http.config.Http1Config http1Config) -
AS2BHttpServerConnection
public AS2BHttpServerConnection(org.apache.hc.core5.http.config.Http1Config http1Config, CharsetDecoder chardecoder, CharsetEncoder charencoder) -
AS2BHttpServerConnection
public AS2BHttpServerConnection(org.apache.hc.core5.http.config.Http1Config http1Config, CharsetDecoder chardecoder, CharsetEncoder charencoder, org.apache.hc.core5.http.ContentLengthStrategy incomingContentStrategy, org.apache.hc.core5.http.ContentLengthStrategy outgoingContentStrategy, org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpRequest> requestParserFactory, org.apache.hc.core5.http.io.HttpMessageWriterFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseWriterFactory)
-
-
Method Details
-
receiveRequestEntity
public void receiveRequestEntity(org.apache.hc.core5.http.ClassicHttpRequest request) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
receiveRequestEntityin interfaceorg.apache.hc.core5.http.io.HttpServerConnection- Overrides:
receiveRequestEntityin classorg.apache.hc.core5.http.impl.io.DefaultBHttpServerConnection- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
ensureOpen
- Throws:
IOException
-
bind
- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.apache.hc.core5.http.HttpConnection
-
getProtocolVersion
public org.apache.hc.core5.http.ProtocolVersion getProtocolVersion()- Specified by:
getProtocolVersionin interfaceorg.apache.hc.core5.http.HttpConnection
-
getSocketHolder
protected org.apache.hc.core5.http.impl.io.SocketHolder getSocketHolder() -
createContentOutputStream
protected OutputStream createContentOutputStream(long arg0, org.apache.hc.core5.http.io.SessionOutputBuffer arg1, OutputStream arg2, org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> arg3) -
createContentInputStream
protected InputStream createContentInputStream(long arg0, org.apache.hc.core5.http.io.SessionInputBuffer arg1, InputStream arg2) -
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-
setSocketTimeout
public void setSocketTimeout(org.apache.hc.core5.util.Timeout arg0) - Specified by:
setSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
getSocketTimeout
public org.apache.hc.core5.util.Timeout getSocketTimeout()- Specified by:
getSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
close
public void close(org.apache.hc.core5.io.CloseMode arg0) - Specified by:
closein interfaceorg.apache.hc.core5.io.ModalCloseable
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.hc.core5.http.HttpConnection- Throws:
IOException
-
awaitInput
- Throws:
IOException
-
isDataAvailable
- Specified by:
isDataAvailablein interfaceorg.apache.hc.core5.http.io.BHttpConnection- Throws:
IOException
-
isStale
- Specified by:
isStalein interfaceorg.apache.hc.core5.http.io.BHttpConnection- Throws:
IOException
-
flush
- Specified by:
flushin interfaceorg.apache.hc.core5.http.io.BHttpConnection- Throws:
IOException
-
incrementRequestCount
protected void incrementRequestCount() -
incrementResponseCount
protected void incrementResponseCount() -
getSSLSession
- Specified by:
getSSLSessionin interfaceorg.apache.hc.core5.http.HttpConnection
-
getEndpointDetails
public org.apache.hc.core5.http.EndpointDetails getEndpointDetails()- Specified by:
getEndpointDetailsin interfaceorg.apache.hc.core5.http.HttpConnection
-
toString
-