Class CXFHttpAsyncRequestProducer
- java.lang.Object
-
- org.apache.cxf.transport.http.asyncclient.hc5.CXFHttpAsyncRequestProducer
-
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataProducer,org.apache.hc.core5.http.nio.AsyncRequestProducer,org.apache.hc.core5.http.nio.ResourceHolder
public class CXFHttpAsyncRequestProducer extends Object implements org.apache.hc.core5.http.nio.AsyncRequestProducer
-
-
Constructor Summary
Constructors Constructor Description CXFHttpAsyncRequestProducer(CXFHttpRequest request, SharedOutputBuffer buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidfailed(Exception ex)org.apache.hc.core5.http.HttpRequestgenerateRequest()org.apache.hc.core5.http.HttpHostgetTarget()booleanisRepeatable()voidproduce(org.apache.hc.core5.http.nio.DataStreamChannel channel)voidreleaseResources()voidrequestCompleted(org.apache.hc.core5.http.protocol.HttpContext context)voidresetRequest()voidsendRequest(org.apache.hc.core5.http.nio.RequestChannel channel, org.apache.hc.core5.http.protocol.HttpContext context)
-
-
-
Constructor Detail
-
CXFHttpAsyncRequestProducer
public CXFHttpAsyncRequestProducer(CXFHttpRequest request, SharedOutputBuffer buf)
-
-
Method Detail
-
getTarget
public org.apache.hc.core5.http.HttpHost getTarget()
-
generateRequest
public org.apache.hc.core5.http.HttpRequest generateRequest() throws IOException, org.apache.hc.core5.http.HttpException- Throws:
IOExceptionorg.apache.hc.core5.http.HttpException
-
produce
public void produce(org.apache.hc.core5.http.nio.DataStreamChannel channel) throws IOException- Specified by:
producein interfaceorg.apache.hc.core5.http.nio.AsyncDataProducer- Throws:
IOException
-
requestCompleted
public void requestCompleted(org.apache.hc.core5.http.protocol.HttpContext context)
-
failed
public void failed(Exception ex)
- Specified by:
failedin interfaceorg.apache.hc.core5.http.nio.AsyncRequestProducer
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatablein interfaceorg.apache.hc.core5.http.nio.AsyncRequestProducer
-
resetRequest
public void resetRequest() throws IOException- Throws:
IOException
-
available
public int available()
- Specified by:
availablein interfaceorg.apache.hc.core5.http.nio.AsyncDataProducer
-
releaseResources
public void releaseResources()
- Specified by:
releaseResourcesin interfaceorg.apache.hc.core5.http.nio.ResourceHolder
-
sendRequest
public void sendRequest(org.apache.hc.core5.http.nio.RequestChannel channel, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException- Specified by:
sendRequestin interfaceorg.apache.hc.core5.http.nio.AsyncRequestProducer- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
-