Class VertxHttpHelper
- java.lang.Object
-
- org.apache.camel.component.vertx.http.VertxHttpHelper
-
public final class VertxHttpHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectdeserializeJavaObjectFromStream(InputStream is)Deserializes an object from the givenInputStreamstatic StringgetCharsetFromExchange(org.apache.camel.Exchange exchange)Retrieves the charset from the exchange Content-Type header, or falls back to the CamelCharsetName exchange property when not availablestatic URIresolveHttpURI(org.apache.camel.Exchange exchange, VertxHttpEndpoint endpoint)Resolves a HTTP URI and path string from the given exchange message headersstatic StringresolveQueryString(org.apache.camel.Exchange exchange)Resolves a HTTP URI query string from the given exchange message headersstatic voidwriteObjectToStream(OutputStream stream, Object target)Writes the given target object to anObjectOutputStream
-
-
-
Method Detail
-
resolveQueryString
public static String resolveQueryString(org.apache.camel.Exchange exchange) throws URISyntaxException
Resolves a HTTP URI query string from the given exchange message headers- Throws:
URISyntaxException
-
resolveHttpURI
public static URI resolveHttpURI(org.apache.camel.Exchange exchange, VertxHttpEndpoint endpoint) throws URISyntaxException
Resolves a HTTP URI and path string from the given exchange message headers- Throws:
URISyntaxException
-
writeObjectToStream
public static void writeObjectToStream(OutputStream stream, Object target) throws IOException
Writes the given target object to anObjectOutputStream- Throws:
IOException
-
deserializeJavaObjectFromStream
public static Object deserializeJavaObjectFromStream(InputStream is) throws ClassNotFoundException, IOException
Deserializes an object from the givenInputStream- Throws:
ClassNotFoundExceptionIOException
-
getCharsetFromExchange
public 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
-
-