Class HttpConverter


  • @Converter(generateLoader=true)
    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.
    • Method Detail

      • 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 IOException
        Throws:
        IOException
      • toInputStream

        @Converter
        public static InputStream toInputStream​(javax.servlet.http.HttpServletRequest request,
                                                org.apache.camel.Exchange exchange)
                                         throws IOException
        Throws:
        IOException