|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.nio.client.methods.HttpAsyncMethods
public final class HttpAsyncMethods
Factory methods for asynchronous request producers and response consumers.
Constructor Summary | |
---|---|
HttpAsyncMethods()
|
Method Summary | |
---|---|
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
create(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request)
Creates asynchronous request generator for the given request message. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
create(org.apache.http.client.methods.HttpUriRequest request)
Creates asynchronous request generator for the given request message. |
static org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> |
createConsumer()
Creates basic response consumer that will buffer response content in memory. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createDelete(String requestURI)
Creates asynchronous DELETE request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createDelete(URI requestURI)
Creates asynchronous DELETE request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createGet(String requestURI)
Creates asynchronous GET request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createGet(URI requestURI)
Creates asynchronous GET request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createHead(String requestURI)
Creates asynchronous HEAD request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createHead(URI requestURI)
Creates asynchronous HEAD request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createOptions(String requestURI)
Creates asynchronous OPTIONS request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createOptions(URI requestURI)
Creates asynchronous OPTIONS request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPost(String requestURI,
byte[] content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous POST request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPost(String requestURI,
String content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous POST request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPost(URI requestURI,
byte[] content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous POST request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPost(URI requestURI,
String content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous POST request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPut(String requestURI,
byte[] content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous PUT request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPut(String requestURI,
String content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous PUT request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPut(URI requestURI,
byte[] content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous PUT request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createPut(URI requestURI,
String content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous PUT request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createTrace(String requestURI)
Creates asynchronous TRACE request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createTrace(URI requestURI)
Creates asynchronous TRACE request generator. |
static org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> |
createZeroCopyConsumer(File file)
Creates zero-copy response consumer that will stream response content directly to the given file. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createZeroCopyPost(String requestURI,
File content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous zero-copy POST request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createZeroCopyPost(URI requestURI,
File content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous zero-copy POST request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createZeroCopyPut(String requestURI,
File content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous zero-copy PUT request generator. |
static org.apache.http.nio.protocol.HttpAsyncRequestProducer |
createZeroCopyPut(URI requestURI,
File content,
org.apache.http.entity.ContentType contentType)
Creates asynchronous zero-copy PUT request generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpAsyncMethods()
Method Detail |
---|
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer create(org.apache.http.HttpHost target, org.apache.http.HttpRequest request)
target
- request target.request
- request message.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer create(org.apache.http.client.methods.HttpUriRequest request)
request
- request message.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createGet(URI requestURI)
GET
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createGet(String requestURI)
GET
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createHead(URI requestURI)
HEAD
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createHead(String requestURI)
HEAD
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createDelete(URI requestURI)
DELETE
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createDelete(String requestURI)
DELETE
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createOptions(URI requestURI)
OPTIONS
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createOptions(String requestURI)
OPTIONS
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createTrace(URI requestURI)
TRACE
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createTrace(String requestURI)
TRACE
request generator.
requestURI
- request URI.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPost(URI requestURI, String content, org.apache.http.entity.ContentType contentType) throws UnsupportedEncodingException
POST
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
UnsupportedEncodingException
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPost(String requestURI, String content, org.apache.http.entity.ContentType contentType) throws UnsupportedEncodingException
POST
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
UnsupportedEncodingException
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPost(URI requestURI, byte[] content, org.apache.http.entity.ContentType contentType)
POST
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPost(String requestURI, byte[] content, org.apache.http.entity.ContentType contentType)
POST
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPut(URI requestURI, String content, org.apache.http.entity.ContentType contentType) throws UnsupportedEncodingException
PUT
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
UnsupportedEncodingException
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPut(String requestURI, String content, org.apache.http.entity.ContentType contentType) throws UnsupportedEncodingException
PUT
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
UnsupportedEncodingException
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPut(URI requestURI, byte[] content, org.apache.http.entity.ContentType contentType)
PUT
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createPut(String requestURI, byte[] content, org.apache.http.entity.ContentType contentType)
PUT
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createZeroCopyPost(URI requestURI, File content, org.apache.http.entity.ContentType contentType) throws FileNotFoundException
POST
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
FileNotFoundException
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createZeroCopyPost(String requestURI, File content, org.apache.http.entity.ContentType contentType) throws FileNotFoundException
POST
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
FileNotFoundException
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createZeroCopyPut(URI requestURI, File content, org.apache.http.entity.ContentType contentType) throws FileNotFoundException
PUT
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
FileNotFoundException
public static org.apache.http.nio.protocol.HttpAsyncRequestProducer createZeroCopyPut(String requestURI, File content, org.apache.http.entity.ContentType contentType) throws FileNotFoundException
PUT
request generator.
requestURI
- request URI.content
- request content.contentType
- request contentType.
FileNotFoundException
public static org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> createConsumer()
public static org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> createZeroCopyConsumer(File file) throws FileNotFoundException
FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |