Class CXFHttpAsyncRequestProducer
- java.lang.Object
-
- org.apache.cxf.transport.http.asyncclient.CXFHttpAsyncRequestProducer
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.http.nio.protocol.HttpAsyncRequestProducer
public class CXFHttpAsyncRequestProducer extends Object implements org.apache.http.nio.protocol.HttpAsyncRequestProducer
-
-
Constructor Summary
Constructors Constructor Description CXFHttpAsyncRequestProducer(CXFHttpRequest request, SharedOutputBuffer buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfailed(Exception ex)org.apache.http.HttpRequestgenerateRequest()org.apache.http.HttpHostgetTarget()booleanisRepeatable()voidproduceContent(org.apache.http.nio.ContentEncoder enc, org.apache.http.nio.IOControl ioc)voidrequestCompleted(org.apache.http.protocol.HttpContext context)voidresetRequest()
-
-
-
Constructor Detail
-
CXFHttpAsyncRequestProducer
public CXFHttpAsyncRequestProducer(CXFHttpRequest request, SharedOutputBuffer buf)
-
-
Method Detail
-
getTarget
public org.apache.http.HttpHost getTarget()
- Specified by:
getTargetin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
generateRequest
public org.apache.http.HttpRequest generateRequest() throws IOException, org.apache.http.HttpException- Specified by:
generateRequestin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer- Throws:
IOExceptionorg.apache.http.HttpException
-
produceContent
public void produceContent(org.apache.http.nio.ContentEncoder enc, org.apache.http.nio.IOControl ioc) throws IOException- Specified by:
produceContentin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer- Throws:
IOException
-
requestCompleted
public void requestCompleted(org.apache.http.protocol.HttpContext context)
- Specified by:
requestCompletedin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
failed
public void failed(Exception ex)
- Specified by:
failedin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatablein interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer
-
resetRequest
public void resetRequest() throws IOException- Specified by:
resetRequestin interfaceorg.apache.http.nio.protocol.HttpAsyncRequestProducer- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-