|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.ahc.helper.AhcHelper
public final class AhcHelper
| Method Summary | |
|---|---|
static String |
createURL(org.apache.camel.Exchange exchange,
AhcEndpoint endpoint)
Creates the URL to invoke. |
static Object |
deserializeJavaObjectFromStream(InputStream is)
Deserializes the input stream to a Java object |
static void |
setCharsetFromContentType(String contentType,
org.apache.camel.Exchange exchange)
|
static void |
writeObjectToStream(OutputStream stream,
Object target)
Writes the given object as response body to the output stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void writeObjectToStream(OutputStream stream,
Object target)
throws IOException
stream - output streamtarget - object to write
IOException - is thrown if error writing
public static Object deserializeJavaObjectFromStream(InputStream is)
throws ClassNotFoundException,
IOException
is - input stream for the Java object
ClassNotFoundException - is thrown if class not found
IOException - can be thrown
public static void setCharsetFromContentType(String contentType,
org.apache.camel.Exchange exchange)
public static String createURL(org.apache.camel.Exchange exchange,
AhcEndpoint endpoint)
throws URISyntaxException,
UnsupportedEncodingException
exchange - the exchangeendpoint - the endpoint
URISyntaxException - is thrown if the URL is invalid
UnsupportedEncodingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||