Package org.apache.camel.http.common
Class HttpConverter
java.lang.Object
org.apache.camel.http.common.HttpConverter
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.-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
toInputStream
(jakarta.servlet.http.HttpServletRequest request, org.apache.camel.Exchange exchange) static InputStream
toInputStream
(HttpMessage message, org.apache.camel.Exchange exchange) static BufferedReader
toReader
(HttpMessage message) static jakarta.servlet.ServletInputStream
toServletInputStream
(HttpMessage message) static jakarta.servlet.http.HttpServletRequest
toServletRequest
(org.apache.camel.Message message) static jakarta.servlet.http.HttpServletResponse
toServletResponse
(org.apache.camel.Message message)
-
Method Details
-
toServletRequest
@Converter public static jakarta.servlet.http.HttpServletRequest toServletRequest(org.apache.camel.Message message) -
toServletResponse
@Converter public static jakarta.servlet.http.HttpServletResponse toServletResponse(org.apache.camel.Message message) -
toServletInputStream
@Converter public static jakarta.servlet.ServletInputStream toServletInputStream(HttpMessage message) throws IOException - Throws:
IOException
-
toInputStream
@Converter public static InputStream toInputStream(HttpMessage message, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
toReader
- Throws:
IOException
-
toInputStream
@Converter public static InputStream toInputStream(jakarta.servlet.http.HttpServletRequest request, org.apache.camel.Exchange exchange) throws IOException - Throws:
IOException
-