public final class VertxHttpHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
deserializeJavaObjectFromStream(InputStream is)
Deserializes an object from the given
InputStream |
static String |
getCharsetFromExchange(org.apache.camel.Exchange exchange)
Retrieves the charset from the exchange Content-Type header, or falls back to the CamelCharsetName exchange
property when not available
|
static URI |
resolveHttpURI(org.apache.camel.Exchange exchange)
Resolves a HTTP URI and path string from the given exchange message headers
|
static String |
resolveQueryString(org.apache.camel.Exchange exchange)
Resolves a HTTP URI query string from the given exchange message headers
|
static void |
writeObjectToStream(OutputStream stream,
Object target)
Writes the given target object to an
ObjectOutputStream |
public static String resolveQueryString(org.apache.camel.Exchange exchange) throws URISyntaxException
URISyntaxExceptionpublic static URI resolveHttpURI(org.apache.camel.Exchange exchange) throws URISyntaxException
URISyntaxExceptionpublic static void writeObjectToStream(OutputStream stream, Object target) throws IOException
ObjectOutputStreamIOExceptionpublic static Object deserializeJavaObjectFromStream(InputStream is) throws ClassNotFoundException, IOException
InputStreamClassNotFoundExceptionIOExceptionpublic static String getCharsetFromExchange(org.apache.camel.Exchange exchange)
Apache Camel