jrun.servlet
Class JRunRequest

jrun.servlet.RequestWrapper
  |
  +--jrun.servlet.JRunRequest
All Implemented Interfaces:
HttpConstants

public final class JRunRequest
extends RequestWrapper
implements HttpConstants


Field Summary
protected  boolean calledGetInputStream
           
protected  java.lang.String characterEncoding
           
protected  AcceptCharset charset_list
           
protected  int contentLength
           
protected  java.lang.String contentType
           
protected  javax.servlet.http.Cookie[] cookies
           
static java.lang.String DEFAULT_CHARACTER_ENCODING
           
protected  boolean gotCookies
           
protected  java.io.BufferedReader inReader
           
protected  AcceptLanguage lang_list
           
protected  Logger logger
           
 
Fields inherited from interface jrun.servlet.HttpConstants
ACCEPT_CHARSET, ACCEPT_LANGUAGE, CACHE_CONTROL, CONNECTION, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, COOKIE, DATE, EXPIRES, HOST, LOCATION, SERVER, SET_COOKIE
 
Constructor Summary
JRunRequest(ServletConnection conn, Logger logger)
           
 
Method Summary
 java.lang.String getCharacterEncoding()
          Returns the character set encoding for the input of this request.
 int getContentLength()
          Returns the content length of the request.
 java.lang.String getContentType()
          Returns the content type of the request.
 javax.servlet.http.Cookie[] getCookies()
           
 javax.servlet.ServletInputStream getInputStream()
          Returns an input stream for reading the request.
 java.util.Locale getLocale()
          Returns the preferred locale of the client.
 java.util.Enumeration getLocales()
          Returns the enumeration of locales from the client.
 java.lang.String getParameter(java.lang.String name)
          Returns the value of the specified query parameter.
 java.util.Enumeration getParameterNames()
          Returns an enumeration of query parameter names.
 java.lang.String[] getParameterValues(java.lang.String name)
          Returns the values of the specified parameter for the request as an array of strings, or null if the named parameter does not exist.
 java.io.BufferedReader getReader()
          Returns a buffered reader for reading text in the request body.
 java.lang.String getRequestedSessionId()
           
 boolean hasMoreElements()
          allways returns false.
 java.lang.Object nextElement()
           
 void setCharacterEncoding(java.lang.String enc)
           
 
Methods inherited from class jrun.servlet.RequestWrapper
getHttpRequest, getRequestWrapper, setRequestWrapper
 

Field Detail

DEFAULT_CHARACTER_ENCODING

public static final java.lang.String DEFAULT_CHARACTER_ENCODING

calledGetInputStream

protected boolean calledGetInputStream

inReader

protected java.io.BufferedReader inReader

lang_list

protected AcceptLanguage lang_list

charset_list

protected AcceptCharset charset_list

logger

protected final Logger logger

contentLength

protected int contentLength

contentType

protected java.lang.String contentType

characterEncoding

protected java.lang.String characterEncoding

cookies

protected javax.servlet.http.Cookie[] cookies

gotCookies

protected boolean gotCookies
Constructor Detail

JRunRequest

public JRunRequest(ServletConnection conn,
                   Logger logger)
Method Detail

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Returns the character set encoding for the input of this request.

setCharacterEncoding

public void setCharacterEncoding(java.lang.String enc)
                          throws java.io.UnsupportedEncodingException

getContentLength

public int getContentLength()
Returns the content length of the request.

getContentType

public java.lang.String getContentType()
Returns the content type of the request.

getLocale

public java.util.Locale getLocale()
Returns the preferred locale of the client.

getLocales

public java.util.Enumeration getLocales()
Returns the enumeration of locales from the client.

getInputStream

public javax.servlet.ServletInputStream getInputStream()
                                                throws java.io.IOException
Returns an input stream for reading the request.

getParameter

public java.lang.String getParameter(java.lang.String name)
Returns the value of the specified query parameter.

getParameterNames

public java.util.Enumeration getParameterNames()
Returns an enumeration of query parameter names.

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Returns the values of the specified parameter for the request as an array of strings, or null if the named parameter does not exist.

getReader

public java.io.BufferedReader getReader()
                                 throws java.io.IOException
Returns a buffered reader for reading text in the request body.
Throws:
java.io.IOException - if an I/O error has occurred

getCookies

public javax.servlet.http.Cookie[] getCookies()

hasMoreElements

public boolean hasMoreElements()
allways returns false. We implement the empty enumeration within this object for performance. It is quite common to call getParameterNames when there are no parameters.

nextElement

public java.lang.Object nextElement()
Throws:
java.util.NoSuchElementException - every time called.

getRequestedSessionId

public java.lang.String getRequestedSessionId()


Copyright � 2002 Macromedia Corporation. All Rights Reserved.