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)booleanisRepeatable()voidproduce(org.apache.hc.core5.http.nio.DataStreamChannel channel)voidreleaseResources()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
-
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
-
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
-
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
-
-