Class VertxHttpHelper
java.lang.Object
org.apache.camel.component.vertx.http.VertxHttpHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectDeserializes 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 Details
-
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
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
Retrieves the charset from the exchange Content-Type header, or falls back to the CamelCharsetName exchange property when not available
-