org.apache.http.nio.client.methods
Class ZeroCopyPost
java.lang.Object
org.apache.http.nio.client.methods.ZeroCopyPost
- All Implemented Interfaces:
- Closeable, org.apache.http.nio.protocol.HttpAsyncRequestProducer
public class ZeroCopyPost
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZeroCopyPost
public ZeroCopyPost(URI requestURI,
File content,
ContentType contentType)
ZeroCopyPost
public ZeroCopyPost(String requestURI,
File content,
ContentType contentType)
createRequest
protected HttpEntityEnclosingRequest createRequest(URI requestURI,
HttpEntity entity)
generateRequest
public HttpRequest generateRequest()
throws IOException,
HttpException
- Specified by:
generateRequest
in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
- Throws:
IOException
HttpException
getTarget
public HttpHost getTarget()
- Specified by:
getTarget
in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
produceContent
public void produceContent(org.apache.http.nio.ContentEncoder encoder,
org.apache.http.nio.IOControl ioctrl)
throws IOException
- Specified by:
produceContent
in interface org.apache.http.nio.protocol.HttpAsyncRequestProducer
- Throws:
IOException
requestCompleted
public void requestCompleted(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
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.