org.apache.commons.messagelet.impl
Class HttpMessageletRequestImpl

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.apache.commons.messagelet.impl.HttpMessageletRequestImpl
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest, MessageletRequest

public class HttpMessageletRequestImpl
extends javax.servlet.http.HttpServletRequestWrapper
implements MessageletRequest

HttpMessageletRequestImpl represents a servlet request from a JMS Message source which appears to be a HTTP request so that JSP can process the request as if it were a HTTP request.

Version:
$Revision: 155459 $
Author:
James Strachan

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
HttpMessageletRequestImpl(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
protected  javax.servlet.ServletInputStream createInputStream()
           
 javax.servlet.ServletInputStream getInputStream()
           
 javax.jms.Message getMessage()
           
 BufferedReader getReader()
           
 void setMessage(javax.jms.Message message)
           
 void setMessenger(Messenger messenger)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

HttpMessageletRequestImpl

public HttpMessageletRequestImpl(javax.servlet.http.HttpServletRequest request)
Method Detail

setMessage

public void setMessage(javax.jms.Message message)
                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setMessenger

public void setMessenger(Messenger messenger)

getMessage

public javax.jms.Message getMessage()
Specified by:
getMessage in interface MessageletRequest
Returns:
the Message which originated this request

getInputStream

public javax.servlet.ServletInputStream getInputStream()
Specified by:
getInputStream in interface javax.servlet.ServletRequest
Overrides:
getInputStream in class javax.servlet.ServletRequestWrapper

getReader

public BufferedReader getReader()
Specified by:
getReader in interface javax.servlet.ServletRequest
Overrides:
getReader in class javax.servlet.ServletRequestWrapper

createInputStream

protected javax.servlet.ServletInputStream createInputStream()
                                                      throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.