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 boolean |
isContentTypeMatching(org.apache.camel.Exchange exchange,
String expected)
Verifies whether the Content-Type exchange header value matches an expected value
|
static boolean |
isContentTypeMatching(String expected,
String actual)
Verifies whether the expected Content-Type value matches an expected value
|
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 |
setupSSLOptions(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters,
io.vertx.core.net.TCPSSLOptions options)
Configures key store and trust store options for the Vert.x client and server
|
static void |
writeObjectToStream(OutputStream stream,
Object target)
Writes the given target object to an
ObjectOutputStream |
public static void setupSSLOptions(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters,
io.vertx.core.net.TCPSSLOptions options)
public static String resolveQueryString(org.apache.camel.Exchange exchange) throws URISyntaxException
URISyntaxExceptionpublic static URI resolveHttpURI(org.apache.camel.Exchange exchange) throws URISyntaxException
URISyntaxExceptionpublic static boolean isContentTypeMatching(org.apache.camel.Exchange exchange,
String expected)
public static boolean isContentTypeMatching(String expected, String actual)
public 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