Apache CXF API

org.apache.cxf.transport.http.asyncclient
Class CXFHttpAsyncRequestProducer

java.lang.Object
  extended by org.apache.cxf.transport.http.asyncclient.CXFHttpAsyncRequestProducer
All Implemented Interfaces:
Closeable, org.apache.http.nio.protocol.HttpAsyncRequestProducer

public class CXFHttpAsyncRequestProducer
extends Object
implements org.apache.http.nio.protocol.HttpAsyncRequestProducer


Constructor Summary
CXFHttpAsyncRequestProducer(CXFHttpRequest request, SharedOutputBuffer buf)
           
 
Method Summary
 void close()
           
 void failed(Exception ex)
           
 org.apache.http.HttpRequest generateRequest()
           
 org.apache.http.HttpHost getTarget()
           
 boolean isRepeatable()
           
 void produceContent(org.apache.http.nio.ContentEncoder enc, org.apache.http.nio.IOControl ioc)
           
 void requestCompleted(org.apache.http.protocol.HttpContext context)
           
 void resetRequest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CXFHttpAsyncRequestProducer

public CXFHttpAsyncRequestProducer(CXFHttpRequest request,
                                   SharedOutputBuffer buf)
Method Detail

getTarget

public org.apache.http.HttpHost getTarget()
Specified by:
getTarget in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer

generateRequest

public org.apache.http.HttpRequest generateRequest()
                                            throws IOException,
                                                   org.apache.http.HttpException
Specified by:
generateRequest in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
Throws:
IOException
org.apache.http.HttpException

produceContent

public void produceContent(org.apache.http.nio.ContentEncoder enc,
                           org.apache.http.nio.IOControl ioc)
                    throws IOException
Specified by:
produceContent in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
Throws:
IOException

requestCompleted

public void requestCompleted(org.apache.http.protocol.HttpContext context)
Specified by:
requestCompleted in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer

failed

public void failed(Exception ex)
Specified by:
failed in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer

isRepeatable

public boolean isRepeatable()
Specified by:
isRepeatable in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer

resetRequest

public void resetRequest()
                  throws IOException
Specified by:
resetRequest in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

Apache CXF API

Apache CXF