Class AxisHttpConnectionImpl
java.lang.Object
org.apache.axis2.transport.http.server.AxisHttpConnectionImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,AxisHttpConnection,org.apache.hc.core5.http.HttpConnection,org.apache.hc.core5.http.SocketModalCloseable,org.apache.hc.core5.io.ModalCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionAxisHttpConnectionImpl(String scheme, Socket socket, org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.io.SocketConfig socketConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(org.apache.hc.core5.io.CloseMode closeMode) createContentInputStream(long len, org.apache.hc.core5.http.io.SessionInputBuffer buffer, InputStream inputStream) createContentOutputStream(long len, org.apache.hc.core5.http.io.SessionOutputBuffer buffer, OutputStream outputStream, org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> trailers) protected org.apache.hc.core5.http.impl.io.SocketHoldervoidflush()org.apache.hc.core5.http.EndpointDetailsorg.apache.hc.core5.http.ProtocolVersionorg.apache.hc.core5.http.impl.io.SocketHolderorg.apache.hc.core5.util.TimeoutbooleanisOpen()booleanisStale()org.apache.hc.core5.http.ClassicHttpRequestvoidreset()voidsendResponse(org.apache.hc.core5.http.ClassicHttpResponse response) voidsetSocketTimeout(org.apache.hc.core5.util.Timeout timeout) voidshutdown()toString()
-
Constructor Details
-
AxisHttpConnectionImpl
public AxisHttpConnectionImpl(String scheme, Socket socket, org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.io.SocketConfig socketConfig) throws IOException - Throws:
IOException
-
-
Method Details
-
close
public void close(org.apache.hc.core5.io.CloseMode closeMode) - 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
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.apache.hc.core5.http.HttpConnection
-
isStale
- Throws:
IOException
-
shutdown
- Throws:
IOException
-
receiveRequest
public org.apache.hc.core5.http.ClassicHttpRequest receiveRequest() throws org.apache.hc.core5.http.HttpException, IOException- Specified by:
receiveRequestin interfaceAxisHttpConnection- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
sendResponse
public void sendResponse(org.apache.hc.core5.http.ClassicHttpResponse response) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
sendResponsein interfaceAxisHttpConnection- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
createContentInputStream
public InputStream createContentInputStream(long len, org.apache.hc.core5.http.io.SessionInputBuffer buffer, InputStream inputStream) -
createContentOutputStream
public OutputStream createContentOutputStream(long len, org.apache.hc.core5.http.io.SessionOutputBuffer buffer, OutputStream outputStream, org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> trailers) -
getSocketHolder
public org.apache.hc.core5.http.impl.io.SocketHolder getSocketHolder()- Specified by:
getSocketHolderin interfaceAxisHttpConnection
-
getInputStream
- Specified by:
getInputStreamin interfaceAxisHttpConnection
-
getOutputStream
- Specified by:
getOutputStreamin interfaceAxisHttpConnection
-
ensureOpen
- Throws:
IOException
-
getProtocolVersion
public org.apache.hc.core5.http.ProtocolVersion getProtocolVersion()- Specified by:
getProtocolVersionin interfaceorg.apache.hc.core5.http.HttpConnection
-
flush
- Specified by:
flushin interfaceAxisHttpConnection- Throws:
IOException
-
reset
- Specified by:
resetin interfaceAxisHttpConnection- Throws:
IOException
-
getSocketTimeout
public org.apache.hc.core5.util.Timeout getSocketTimeout()- Specified by:
getSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
setSocketTimeout
public void setSocketTimeout(org.apache.hc.core5.util.Timeout timeout) - Specified by:
setSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-
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
-