org.apache.camel.component.http
Class HttpConverter

java.lang.Object
  extended by 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: 801145 $

Method Summary
static InputStream toInputStream(HttpMessage message)
           
static InputStream toInputStream(HttpServletRequest request)
           
static BufferedReader toReader(HttpMessage message)
           
static ServletInputStream toServletInputStream(HttpMessage message)
           
static HttpServletRequest toServletRequest(HttpMessage message)
           
static HttpServletResponse toServletResponse(HttpMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toServletRequest

@Converter
public static HttpServletRequest toServletRequest(HttpMessage message)

toServletResponse

@Converter
public static HttpServletResponse toServletResponse(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 © 2007-2010 The Apache Software Foundation. All Rights Reserved.