|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.netty.http.NettyHttpHelper
public final class NettyHttpHelper
Helpers.
Method Summary | |
---|---|
static void |
appendHeader(Map<String,Object> headers,
String key,
Object value)
Appends the key/value to the headers. |
static org.jboss.netty.handler.codec.http.HttpMethod |
createMethod(org.apache.camel.Message message,
boolean hasPayload)
Creates the HttpMethod to use to call the remote server, often either its GET or POST. |
static URI |
createURI(org.apache.camel.Exchange exchange,
String url,
NettyHttpEndpoint endpoint)
Creates the URI to invoke. |
static String |
createURL(org.apache.camel.Exchange exchange,
NettyHttpEndpoint endpoint)
Creates the URL to invoke. |
static Object |
deserializeJavaObjectFromStream(InputStream is)
|
static String |
getCharsetFromContentType(String contentType)
|
static Exception |
populateNettyHttpOperationFailedException(org.apache.camel.Exchange exchange,
String url,
org.jboss.netty.handler.codec.http.HttpResponse response,
int responseCode,
boolean transferException)
|
static void |
setCharsetFromContentType(String contentType,
org.apache.camel.Exchange exchange)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setCharsetFromContentType(String contentType, org.apache.camel.Exchange exchange)
public static String getCharsetFromContentType(String contentType)
public static void appendHeader(Map<String,Object> headers, String key, Object value)
List
that contains the multiple values.
headers
- headerskey
- the keyvalue
- the valuepublic static org.jboss.netty.handler.codec.http.HttpMethod createMethod(org.apache.camel.Message message, boolean hasPayload)
HttpMethod
to use to call the remote server, often either its GET or POST.
message
- the Camel message
public static Exception populateNettyHttpOperationFailedException(org.apache.camel.Exchange exchange, String url, org.jboss.netty.handler.codec.http.HttpResponse response, int responseCode, boolean transferException)
public static Object deserializeJavaObjectFromStream(InputStream is) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public static String createURL(org.apache.camel.Exchange exchange, NettyHttpEndpoint endpoint) throws URISyntaxException
exchange
- the exchangeendpoint
- the endpoint
URISyntaxException
public static URI createURI(org.apache.camel.Exchange exchange, String url, NettyHttpEndpoint endpoint) throws URISyntaxException
exchange
- the exchangeurl
- the url to invokeendpoint
- the endpoint
URISyntaxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |