Class JettyMessageConsumer

    • Constructor Detail

      • JettyMessageConsumer

        public JettyMessageConsumer()
    • Method Detail

      • createMessage

        public AdaptrisMessage createMessage​(javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws java.io.IOException,
                                             javax.servlet.ServletException
        Description copied from class: BasicJettyConsumer
        Create an AdaptrisMessage from the incoming servlet request and response.
        Specified by:
        createMessage in class BasicJettyConsumer
        Parameters:
        request - the HttpServletRequest
        response - the HttpServletResponse
        Returns:
        an AdaptrisMessage instance.
        Throws:
        java.io.IOException
        javax.servlet.ServletException
        See Also:
        HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      • getParameterHandler

        public ParameterHandler<javax.servlet.http.HttpServletRequest> getParameterHandler()
        What to do with any parameters that are part of the request.

        The default if not explicitly specified is to ignore any parameters and discard them

      • setParameterHandler

        public void setParameterHandler​(ParameterHandler<javax.servlet.http.HttpServletRequest> parameterHandler)
        What to do with any parameters that are part of the request.

        The default if not explicitly specified is to ignore any parameters and discard them

      • getHeaderHandler

        public HeaderHandler<javax.servlet.http.HttpServletRequest> getHeaderHandler()
        What to do with any HTTP headers

        The default if not explicitly specified is to ignore http headers and discard them

      • setHeaderHandler

        public void setHeaderHandler​(HeaderHandler<javax.servlet.http.HttpServletRequest> headerHandler)
        What to do with any HTTP headers

        The default if not explicitly specified is to ignore http headers and discard them

      • getCheckCharset

        public java.lang.Boolean getCheckCharset()
        Whether or not to check the character encoding on the request

        This defaults to change true if not explicitly specified. If set to true, then this is the defined behaviour

        • If the HttpServletRequest#getCharacterEncoding() is valid (according to Charset.forName(String)) then it is used.
        • If the HttpServletRequest#getCharacterEncoding is not supported then the default content encoding is used, based on your settings for the AdaptrisMessageFactory instance and CoreConstants.OBJ_METADATA_EXCEPTION object metadata is populated with a UnsupportedCharsetException exception.

        If set to false, then InterlokMessage.setContentEncoding(String) is just invoked with HttpServletRequest#getCharacterEncoding() which may cause failures when receiving data from clients where the supported character sets differs.

      • setCheckCharset

        public void setCheckCharset​(java.lang.Boolean checkCharset)
        Whether or not to check the character encoding on the request

        This defaults to change true if not explicitly specified. If set to true, then this is the defined behaviour

        • If the HttpServletRequest#getCharacterEncoding() is valid (according to Charset.forName(String)) then it is used.
        • If the HttpServletRequest#getCharacterEncoding is not supported then the default content encoding is used, based on your settings for the AdaptrisMessageFactory instance and CoreConstants.OBJ_METADATA_EXCEPTION object metadata is populated with a UnsupportedCharsetException exception.

        If set to false, then InterlokMessage.setContentEncoding(String) is just invoked with HttpServletRequest#getCharacterEncoding() which may cause failures when receiving data from clients where the supported character sets differs.