org.apache.camel.component.http
Class HttpConverter
java.lang.Object
org.apache.camel.component.http.HttpConverter
@Converter
public final class HttpConverter
- extends 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:
- $Revision: 779489 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toServletRequest
@Converter
public static HttpServletRequest toServletRequest(HttpMessage message)
toServletInputStream
@Converter
public static ServletInputStream toServletInputStream(HttpMessage message)
throws IOException
- Throws:
IOException
toInputStream
@Converter
public static InputStream toInputStream(HttpMessage message)
throws Exception
- Throws:
Exception
toReader
@Converter
public static BufferedReader toReader(HttpMessage message)
throws IOException
- Throws:
IOException
toInputStream
@Converter
public static InputStream toInputStream(HttpServletRequest request)
throws IOException
- Throws:
IOException
Copyright © 2009 Apache Software Foundation. All Rights Reserved.