|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.http.client.impl.DefaultHttpRequestFactory
public class DefaultHttpRequestFactory
Factory for request related Http client objects.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.smila.http.client.impl.base.HttpRequestFactory |
|---|
CHARSET, CONTENTTYPE_JSON, ENCODING, MIMETYPE_JSON |
| Constructor Summary | |
|---|---|
DefaultHttpRequestFactory()
|
|
| Method Summary | |
|---|---|
HttpEntity |
createEntity(java.io.InputStream inputStream,
java.lang.String contentType)
Wrap an input stream with any content type as an HttpEntity. |
HttpEntity |
createHttpEntity(Any parameters,
Attachments attachments)
Create an HTTP entity from the input data. |
HttpEntity |
createJsonEntity(Any parameters)
Write parameters to JSON and wrap as an HttpEntity. |
HttpEntity |
createJsonEntity(java.io.InputStream inputStream)
Wrap an UTF-8-JSON input stream as an HttpEntity. |
HttpEntity |
createMultipartEntity(Any parameters,
Attachments attachments)
Create a multipart entity for a JSON metadata body and attachments. |
HttpUriRequest |
getHttpMethod(HttpMethod method,
java.lang.String url)
Create request object for method and url. |
HttpUriRequest |
getHttpMethod(HttpMethod method,
java.lang.String url,
HttpParams methodParams)
Create request object for method and URL and set optional parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHttpRequestFactory()
| Method Detail |
|---|
public HttpUriRequest getHttpMethod(HttpMethod method,
java.lang.String url)
HttpRequestFactory
getHttpMethod in interface HttpRequestFactory
public HttpUriRequest getHttpMethod(HttpMethod method,
java.lang.String url,
HttpParams methodParams)
HttpRequestFactory
getHttpMethod in interface HttpRequestFactory
public HttpEntity createJsonEntity(Any parameters)
throws java.io.IOException
HttpRequestFactoryHttpEntity.
createJsonEntity in interface HttpRequestFactoryjava.io.IOException
public HttpEntity createJsonEntity(java.io.InputStream inputStream)
throws java.io.IOException
HttpRequestFactoryHttpEntity.
createJsonEntity in interface HttpRequestFactoryjava.io.IOException
public HttpEntity createEntity(java.io.InputStream inputStream,
java.lang.String contentType)
throws java.io.IOException
HttpRequestFactoryHttpEntity.
createEntity in interface HttpRequestFactoryjava.io.IOException
public HttpEntity createHttpEntity(Any parameters,
Attachments attachments)
throws java.io.IOException
HttpRequestFactory
createHttpEntity in interface HttpRequestFactoryjava.io.IOException
public HttpEntity createMultipartEntity(Any parameters,
Attachments attachments)
throws java.io.IOException
HttpRequestFactory
createMultipartEntity in interface HttpRequestFactoryjava.io.IOException
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||