org.apache.camel.component.http
Class HttpConverter
java.lang.Object
org.apache.camel.component.http.HttpConverter
@Converter
public final class HttpConverter
- extends java.lang.Object
Some converter methods making it easy to convert the body of a message to servlet types or to switch between
the underlying ServletInputStream
or BufferedReader
payloads etc.
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toServletRequest
@Converter
public static javax.servlet.http.HttpServletRequest toServletRequest(org.apache.camel.Message message)
toServletResponse
@Converter
public static javax.servlet.http.HttpServletResponse toServletResponse(org.apache.camel.Message message)
toServletInputStream
@Converter
public static javax.servlet.ServletInputStream toServletInputStream(HttpMessage message)
throws java.io.IOException
- Throws:
java.io.IOException
toInputStream
@Converter
public static java.io.InputStream toInputStream(HttpMessage message,
org.apache.camel.Exchange exchange)
throws java.lang.Exception
- Throws:
java.lang.Exception
toReader
@Converter
public static java.io.BufferedReader toReader(HttpMessage message)
throws java.io.IOException
- Throws:
java.io.IOException
toInputStream
@Converter
public static java.io.InputStream toInputStream(javax.servlet.http.HttpServletRequest request,
org.apache.camel.Exchange exchange)
throws java.io.IOException
- Throws:
java.io.IOException
Apache CAMEL