org.moremotion.servlet
Class MoreMotionRequest

java.lang.Object
  extended by org.moremotion.servlet.MoreMotionRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class MoreMotionRequest
extends java.lang.Object
implements javax.servlet.http.HttpServletRequest

MoreMotionRequest is the most important class of the MoreMotion Application Framework. It provides methods suitable with the way MoreMotion responds to request. One significant functionality provided by this class is decoding the request parameters correctly.

Request Parameter Decoding

When a request is sent to the server, the parameters existing in the request are encoded by the browsers using an encoding, i.e. ISO-8859-1. When an application server receives a request, it decodes these parameters and prepare a request object to pass to the Servlet.

If the application server does not use the same encoding that the browser used to encode the parameters during the decoding, the request parameters can get corrupted. Unfortunately this is the case for Tomcat. Tomcat always decode the request parameters using ISO-8859-1.

MoreMotion solves this problem with the help of the request parameter "_enc". In order to benefit from this functionality, a hidden input field with name "_enc" must be placed in the form elements and their values must be set to the encoding of the current page.

If you get the value of a request parameter by using the methods provided by this class, i.e. getParameter(), the value will be decoded using the encoding value supplied by this "_enc" parameter.

 String name = request.getParameter("name",null);
 // The name string will get the decoded "name" parameter.
 
However, some application servers can nicely guess the case and reads request parameters correctly. In that case you should disable the parameter conversion by setting the following system parameter to false.
 <enableParameterConversion>false</enableParameterConversion>
 

Version:
$Id: MoreMotionRequest.java 186 2008-07-31 18:23:46Z erkan $

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
MoreMotionRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 void adjustVarsToPage(java.lang.String pageName)
           
 ADOMNode createMessage(java.lang.Exception exception)
          Creates a new Request Datasource for the message if not already created and adds the given message in it.
 ADOMNode createMessage(java.lang.String unitName, java.lang.String messageId, java.lang.String[] arguments, java.lang.Object details)
          Creates a new Request Datasource for the message if not already created and adds the given message in it.
 void generateDefaultErrorPage()
          Generates the default error page.
 void generatePage(java.lang.String pageName)
          Generates (Displays) the specified page.
 boolean generatingErrorPage()
           
 int getAllowCaching()
           
 ADOM getApplicationADOM(java.lang.String name)
          Returns the ADOM saved to servlet context by the given name.
 java.lang.String getApplicationPath()
          Returns the Application Path of the current web application.
 java.lang.Object getAttribute(java.lang.String str)
           
 java.util.Enumeration getAttributeNames()
           
 java.lang.String getAuthType()
           
 java.lang.String getCharacterEncoding()
           
 int getContentLength()
           
 java.lang.String getContentType()
           
 javax.servlet.ServletContext getContext()
          Returns the ServletContext object
 java.lang.String getContextPath()
           
 javax.servlet.http.Cookie[] getCookies()
           
 java.lang.String getCookieValue(java.lang.String cookieName)
          Returns the value of the specified cookie.
 CurrentPage getCurrentPage()
           
 long getDateHeader(java.lang.String str)
           
 java.util.Hashtable getForcedDatasources()
          Returns the list of the datasource thats were forced to be included in the page XML data.
 java.lang.String getHeader(java.lang.String str)
           
 java.util.Enumeration getHeaderNames()
           
 java.util.Enumeration getHeaders(java.lang.String str)
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
          Returns the original HttpServletRequest object.
 javax.servlet.ServletInputStream getInputStream()
           
 int getIntHeader(java.lang.String str)
           
 java.lang.String getLanguage()
          Returns the current language code
 java.lang.String getLocalAddr()
           
 java.util.Locale getLocale()
           
 java.util.Enumeration getLocales()
           
 java.lang.String getLocalName()
           
 int getLocalPort()
           
 java.lang.String getMethod()
           
 java.lang.String getOriginPage()
          The name of the origin page that is taken from request parameter "_originpage".
 java.lang.String getPageLocation()
           
 java.lang.String getParameter(java.lang.String parmName)
          Returns the value of the specified request parameter.
 java.lang.String getParameter(java.lang.String parmName, java.lang.String defValue)
          Returns the value of the specified request parameter.
 boolean getParameterAsBoolean(java.lang.String prmname, boolean defVal)
          Returns the value of the request parameters as boolean.
 double getParameterAsDouble(java.lang.String parmName, double defValue)
          Returns the value of the request parameters as double.
 int getParameterAsInt(java.lang.String parmName, int defValue)
          Returns the value of the request parameters as int.
 java.util.Map getParameterMap()
           
 java.util.Enumeration getParameterNames()
           
 java.lang.String[] getParameterValues(java.lang.String parmName)
          Returns a String array that contains the values of the specified parameter.
 java.lang.String getPathInfo()
           
 java.lang.String getPathTranslated()
           
 java.lang.String getPlainParameter(java.lang.String parmName)
          Returns the value of the specified parameter.
 java.lang.String getPlainParameter(java.lang.String parmName, java.lang.String defValue)
          Returns the value of the specified parameter.
 java.lang.String getProtocol()
           
 java.lang.String getQueryString()
           
 java.io.BufferedReader getReader()
           
 java.io.File getRealFile(java.lang.String fileName)
          Returns the file object of the real file for the specified file name relative to web application path.
 java.lang.String getRealPath(java.lang.String str)
           
 java.lang.String getRemoteAddr()
           
 java.lang.String getRemoteHost()
           
 int getRemotePort()
           
 java.lang.String getRemoteUser()
           
 ADOM getRequestADOM(java.lang.String name)
          Returns the ADOM saved to request by the given name.
 javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String str)
           
 java.lang.String getRequestedSessionId()
           
 java.lang.String getRequestURI()
           
 java.lang.StringBuffer getRequestURL()
           
 boolean getResponded()
          Returns true if the a response is already prepared for this request.
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the HttpServletResponse object.
 java.lang.String getScheme()
           
 java.lang.String getServerName()
           
 int getServerPort()
           
 java.lang.String getServletPath()
           
 javax.servlet.http.HttpSession getSession()
           
 javax.servlet.http.HttpSession getSession(boolean param)
           
 ADOM getSessionADOM(java.lang.String name)
          Returns the ADOM saved to session by the given name.
 java.lang.String[] getSourceAreaNames()
           
 MMSymbolResolver getSymbolResolver()
          Returns the Symbol MScriptResolver object that this request is associated.
 int getUnitDebugLevel(java.lang.String unit)
          Returns the debugging level of an unit.
 java.security.Principal getUserPrincipal()
           
 Vars getVars()
           
 VariablePool getVPool()
          Returns the variable pool object that is associated with this request
 void includeInPageXML(java.lang.String dsname, java.lang.String resBundleName, ADOM adom)
          This method forces MoreMotion to include the content of the specified datasource to the page XML data even though there is no explicit reference to it in the page to be displayed next.
 boolean isRequestedSessionIdFromCookie()
           
 boolean isRequestedSessionIdFromUrl()
           
 boolean isRequestedSessionIdFromURL()
           
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(java.lang.String str)
           
 ADOM newApplicationADOM(java.lang.String name)
          Creates a new Application ADOM and saves it in the servlet context.
 ADOM newRequestADOM(java.lang.String name)
          Creates a new protected Request ADOM and saves it in the request.
 ADOM newSessionADOM(java.lang.String name)
          Creates a new protected Session ADOM and saves it in the session.
 void removeApplicationADOM(java.lang.String name)
          Removes ADOM from servlet context by given name.
 void removeAttribute(java.lang.String str)
           
 void removeRequestADOM(java.lang.String name)
          Removes ADOM from request by given name.
 void removeSessionADOM(java.lang.String name)
          Removes ADOM from session by given name.
 java.lang.String resolve(java.lang.String str)
          Resolves the MScript functions existing in the given string and returns it.
 void setAllowCaching(int value)
           
 void setAttribute(java.lang.String str, java.lang.Object obj)
           
 void setCharacterEncoding(java.lang.String str)
           
 void setCookieValue(java.lang.String cookieName, java.lang.String cookieValue, int maxAge)
          Sets a cookie.
 void setCurrentPage(CurrentPage value)
          Sets the CurrentPage object to let the methods of this class to access all the necessary information about the current page.
 void setGeneratingErrorPage()
           
 void setNoCache()
           
 void setPageLocation(java.lang.String loc)
           
 void setResponded(boolean value)
          This method can be used to notify to the MoreMotion that a response is already given by you so he should not bother generating a page.
 void setSourceAreaNames(java.lang.String names)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoreMotionRequest

public MoreMotionRequest(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
Method Detail

setResponded

public void setResponded(boolean value)
This method can be used to notify to the MoreMotion that a response is already given by you so he should not bother generating a page.


getResponded

public boolean getResponded()
Returns true if the a response is already prepared for this request.


setAllowCaching

public void setAllowCaching(int value)

getAllowCaching

public int getAllowCaching()

generatingErrorPage

public boolean generatingErrorPage()

setGeneratingErrorPage

public void setGeneratingErrorPage()

setSourceAreaNames

public void setSourceAreaNames(java.lang.String names)

getSourceAreaNames

public java.lang.String[] getSourceAreaNames()

getSymbolResolver

public MMSymbolResolver getSymbolResolver()
Returns the Symbol MScriptResolver object that this request is associated.


adjustVarsToPage

public void adjustVarsToPage(java.lang.String pageName)

getVars

public Vars getVars()

getUnitDebugLevel

public int getUnitDebugLevel(java.lang.String unit)
Returns the debugging level of an unit.

Parameters:
unit - The name of the unit.
Returns:
A number between 0 - 3 where 0: debuging is off, 1: Level 1 debugging, 2: Level 2 debugging and 3: Level 3 debugging.

getVPool

public VariablePool getVPool()
Returns the variable pool object that is associated with this request


getLanguage

public java.lang.String getLanguage()
Returns the current language code


getOriginPage

public java.lang.String getOriginPage()
The name of the origin page that is taken from request parameter "_originpage". Note that the origin page name is generally required to access to the configuration of the page where the originating element is located; therefore "_originpage" request parameter should be supplied for such cases.


setCookieValue

public void setCookieValue(java.lang.String cookieName,
                           java.lang.String cookieValue,
                           int maxAge)
Sets a cookie.

Parameters:
cookieName - the Name of the cookie to set.
cookieValue - the value for the cookie.
maxAge - the duration of the cookie is seconds.

getCookieValue

public java.lang.String getCookieValue(java.lang.String cookieName)
Returns the value of the specified cookie.

Parameters:
cookieName - the Name of the cookie to set.
Returns:
null if the cookie is not found, otherwise the value of it.

createMessage

public ADOMNode createMessage(java.lang.String unitName,
                              java.lang.String messageId,
                              java.lang.String[] arguments,
                              java.lang.Object details)
Creates a new Request Datasource for the message if not already created and adds the given message in it.

Parameters:
unitName - Name of the reporting unit. This name will be used to name the data source to be created and the resource associated with it.
messageId - Either a message text or a resource Id. The message will be taken from the resource file unitName.res with this Id. If no resource is found with the given id in the resource file then messageId is used as the message text.
arguments - the message arguments which will be used to replace argument symbols (%0, %1, etc.) existing in the message text.
details - Either an Exception object that keeps the original exception or a String object that keeps the message details.
Returns:
created ADOMNode object to let you add extra information to the message created.

The XML Structure of the created message datasource is as follows:

 <unitName_messages>
    <message id="messageId">
      <text>Message text taken from the resource file with the given messageId</text>
      <unitname>Given unit name</unitname>
      <details>Message Details. Either the Stack Trace of the orginal exception or the given details as String</details>
    </message>
 </unitName_messages>
 

Example:

  ADOMNode msg = request.CreateMessage("myunit","MISSING_TABLE",new String[]{databaseName, tableName},e);
  msg.setNodeValue("extrainfo","extra info .....");
  request.generateDefaultErrorPage();  // To display messages using MoreMotion's default error page
  request.generatePage("MyErrorPage"); // To display messages using your error page.
                                       // You can prepare your Error Page using template element "\cpn\mor\ErrorPageTemplate.mmel"
 


createMessage

public ADOMNode createMessage(java.lang.Exception exception)
Creates a new Request Datasource for the message if not already created and adds the given message in it. If the Exception object is an instance of a MoreMotionException this method can extract the message id, arguments end details from it.

See Also:

If the given exception is or contains a java.sql.SQLException the returned ADOMNode object contains two additional entries that are "jdbc-error-code" and "jdbc-sql-state".


includeInPageXML

public void includeInPageXML(java.lang.String dsname,
                             java.lang.String resBundleName,
                             ADOM adom)
This method forces MoreMotion to include the content of the specified datasource to the page XML data even though there is no explicit reference to it in the page to be displayed next.

Parameters:
dsname - The name of the datasource to include to the page XML.
resBundleName - The name of the resource bundle that will be used to resolve $res() functions existing in the datasource content.
adom - the ADOM object that will provide the content.

getForcedDatasources

public java.util.Hashtable getForcedDatasources()
Returns the list of the datasource thats were forced to be included in the page XML data.


getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Returns the original HttpServletRequest object.


generatePage

public void generatePage(java.lang.String pageName)
                  throws PageGenerationException
Generates (Displays) the specified page.

Parameters:
pageName - Name of the page to generate. It is usually the name of the XSL file without extension.
Throws:
PageGenerationException - if generation fails.

generateDefaultErrorPage

public void generateDefaultErrorPage()
                              throws PageGenerationException
Generates the default error page.

Throws:
PageGenerationException

resolve

public java.lang.String resolve(java.lang.String str)
                         throws MScriptException
Resolves the MScript functions existing in the given string and returns it.

Parameters:
str - the input string
Returns:
resolved String
Throws:
MScriptException

getPlainParameter

public java.lang.String getPlainParameter(java.lang.String parmName)
Returns the value of the specified parameter. Note that this method cannot be used to retrieve the values of the encrypted parameters.


getPageLocation

public java.lang.String getPageLocation()

setPageLocation

public void setPageLocation(java.lang.String loc)

getPlainParameter

public java.lang.String getPlainParameter(java.lang.String parmName,
                                          java.lang.String defValue)
Returns the value of the specified parameter. Note that this method cannot be used to retrieve the values of the encrypted parameters.


getParameter

public java.lang.String getParameter(java.lang.String parmName)
Returns the value of the specified request parameter. It returns null if the parameters is not found.

Specified by:
getParameter in interface javax.servlet.ServletRequest

getParameter

public java.lang.String getParameter(java.lang.String parmName,
                                     java.lang.String defValue)
Returns the value of the specified request parameter. If the parameter is not found returns the default value.


getParameterAsInt

public int getParameterAsInt(java.lang.String parmName,
                             int defValue)
Returns the value of the request parameters as int. If the parameter is not found returns the default value.


getParameterAsDouble

public double getParameterAsDouble(java.lang.String parmName,
                                   double defValue)
Returns the value of the request parameters as double. If the parameter is not found returns the default value.


getParameterAsBoolean

public boolean getParameterAsBoolean(java.lang.String prmname,
                                     boolean defVal)
Returns the value of the request parameters as boolean. If the parameter is not found returns the default value.


getParameterValues

public java.lang.String[] getParameterValues(java.lang.String parmName)
Returns a String array that contains the values of the specified parameter. This method is used if the request potentially contains the same parameter more than one. i.e. MyServlet?code=1&code=4&code=11

Specified by:
getParameterValues in interface javax.servlet.ServletRequest

getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Returns the HttpServletResponse object.


getContext

public javax.servlet.ServletContext getContext()
Returns the ServletContext object


getApplicationPath

public java.lang.String getApplicationPath()
Returns the Application Path of the current web application.


getRealFile

public java.io.File getRealFile(java.lang.String fileName)
Returns the file object of the real file for the specified file name relative to web application path.

Parameters:
fileName - Relative file name
Returns:
File object of the real file.

newRequestADOM

public ADOM newRequestADOM(java.lang.String name)
Creates a new protected Request ADOM and saves it in the request.

Parameters:
name - Name of the ADOM.
Returns:
Newly created ADOM.

newSessionADOM

public ADOM newSessionADOM(java.lang.String name)
Creates a new protected Session ADOM and saves it in the session.

Parameters:
name - Name of the ADOM.
Returns:
Newly created ADOM.

newApplicationADOM

public ADOM newApplicationADOM(java.lang.String name)
Creates a new Application ADOM and saves it in the servlet context.

Parameters:
name - Name of the ADOM.
Returns:
Newly created ADOM.

getRequestADOM

public ADOM getRequestADOM(java.lang.String name)
Returns the ADOM saved to request by the given name.

Parameters:
name - Name of the ADOM.
Returns:
null if ADOM cannot be found.

getSessionADOM

public ADOM getSessionADOM(java.lang.String name)
Returns the ADOM saved to session by the given name.

Parameters:
name - Name of the ADOM.
Returns:
null if ADOM cannot be found.

getApplicationADOM

public ADOM getApplicationADOM(java.lang.String name)
Returns the ADOM saved to servlet context by the given name.

Parameters:
name - Name of the ADOM.
Returns:
null if ADOM cannot be found.

removeRequestADOM

public void removeRequestADOM(java.lang.String name)
Removes ADOM from request by given name.


removeSessionADOM

public void removeSessionADOM(java.lang.String name)
Removes ADOM from session by given name.


removeApplicationADOM

public void removeApplicationADOM(java.lang.String name)
Removes ADOM from servlet context by given name.


setCurrentPage

public void setCurrentPage(CurrentPage value)
                    throws PageGenerationException
Sets the CurrentPage object to let the methods of this class to access all the necessary information about the current page.

Throws:
PageGenerationException

getCurrentPage

public CurrentPage getCurrentPage()

setNoCache

public void setNoCache()

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.servlet.ServletRequest

isSecure

public boolean isSecure()
Specified by:
isSecure in interface javax.servlet.ServletRequest

getServerName

public java.lang.String getServerName()
Specified by:
getServerName in interface javax.servlet.ServletRequest

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface javax.servlet.ServletRequest

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface javax.servlet.ServletRequest

getAttribute

public java.lang.Object getAttribute(java.lang.String str)
Specified by:
getAttribute in interface javax.servlet.ServletRequest

getReader

public java.io.BufferedReader getReader()
                                 throws java.io.IOException
Specified by:
getReader in interface javax.servlet.ServletRequest
Throws:
java.io.IOException

getScheme

public java.lang.String getScheme()
Specified by:
getScheme in interface javax.servlet.ServletRequest

isRequestedSessionIdFromCookie

public boolean isRequestedSessionIdFromCookie()
Specified by:
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequest

getSession

public javax.servlet.http.HttpSession getSession()
Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

getSession

public javax.servlet.http.HttpSession getSession(boolean param)
Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

getParameterNames

public java.util.Enumeration getParameterNames()
Specified by:
getParameterNames in interface javax.servlet.ServletRequest

getLocales

public java.util.Enumeration getLocales()
Specified by:
getLocales in interface javax.servlet.ServletRequest

getRemoteHost

public java.lang.String getRemoteHost()
Specified by:
getRemoteHost in interface javax.servlet.ServletRequest

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface javax.servlet.ServletRequest

getRealPath

public java.lang.String getRealPath(java.lang.String str)
Specified by:
getRealPath in interface javax.servlet.ServletRequest

getInputStream

public javax.servlet.ServletInputStream getInputStream()
                                                throws java.io.IOException
Specified by:
getInputStream in interface javax.servlet.ServletRequest
Throws:
java.io.IOException

getPathTranslated

public java.lang.String getPathTranslated()
Specified by:
getPathTranslated in interface javax.servlet.http.HttpServletRequest

getServletPath

public java.lang.String getServletPath()
Specified by:
getServletPath in interface javax.servlet.http.HttpServletRequest

getRequestDispatcher

public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String str)
Specified by:
getRequestDispatcher in interface javax.servlet.ServletRequest

removeAttribute

public void removeAttribute(java.lang.String str)
Specified by:
removeAttribute in interface javax.servlet.ServletRequest

getIntHeader

public int getIntHeader(java.lang.String str)
Specified by:
getIntHeader in interface javax.servlet.http.HttpServletRequest

getHeaderNames

public java.util.Enumeration getHeaderNames()
Specified by:
getHeaderNames in interface javax.servlet.http.HttpServletRequest

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest

getPathInfo

public java.lang.String getPathInfo()
Specified by:
getPathInfo in interface javax.servlet.http.HttpServletRequest

getCookies

public javax.servlet.http.Cookie[] getCookies()
Specified by:
getCookies in interface javax.servlet.http.HttpServletRequest

getRemoteAddr

public java.lang.String getRemoteAddr()
Specified by:
getRemoteAddr in interface javax.servlet.ServletRequest

getQueryString

public java.lang.String getQueryString()
Specified by:
getQueryString in interface javax.servlet.http.HttpServletRequest

getAuthType

public java.lang.String getAuthType()
Specified by:
getAuthType in interface javax.servlet.http.HttpServletRequest

isUserInRole

public boolean isUserInRole(java.lang.String str)
Specified by:
isUserInRole in interface javax.servlet.http.HttpServletRequest

getMethod

public java.lang.String getMethod()
Specified by:
getMethod in interface javax.servlet.http.HttpServletRequest

getHeader

public java.lang.String getHeader(java.lang.String str)
Specified by:
getHeader in interface javax.servlet.http.HttpServletRequest

getRequestURI

public java.lang.String getRequestURI()
Specified by:
getRequestURI in interface javax.servlet.http.HttpServletRequest

setAttribute

public void setAttribute(java.lang.String str,
                         java.lang.Object obj)
Specified by:
setAttribute in interface javax.servlet.ServletRequest

isRequestedSessionIdFromUrl

public boolean isRequestedSessionIdFromUrl()
Specified by:
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromURL

public boolean isRequestedSessionIdFromURL()
Specified by:
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequest

getUserPrincipal

public java.security.Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface javax.servlet.http.HttpServletRequest

getAttributeNames

public java.util.Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface javax.servlet.ServletRequest

getRequestedSessionId

public java.lang.String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface javax.servlet.http.HttpServletRequest

getDateHeader

public long getDateHeader(java.lang.String str)
Specified by:
getDateHeader in interface javax.servlet.http.HttpServletRequest

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface javax.servlet.ServletRequest

getRemoteUser

public java.lang.String getRemoteUser()
Specified by:
getRemoteUser in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequest

getContextPath

public java.lang.String getContextPath()
Specified by:
getContextPath in interface javax.servlet.http.HttpServletRequest

getHeaders

public java.util.Enumeration getHeaders(java.lang.String str)
Specified by:
getHeaders in interface javax.servlet.http.HttpServletRequest

setCharacterEncoding

public void setCharacterEncoding(java.lang.String str)
                          throws java.io.UnsupportedEncodingException
Specified by:
setCharacterEncoding in interface javax.servlet.ServletRequest
Throws:
java.io.UnsupportedEncodingException

getParameterMap

public java.util.Map getParameterMap()
Specified by:
getParameterMap in interface javax.servlet.ServletRequest

getRequestURL

public java.lang.StringBuffer getRequestURL()
Specified by:
getRequestURL in interface javax.servlet.http.HttpServletRequest

getLocalAddr

public java.lang.String getLocalAddr()
Specified by:
getLocalAddr in interface javax.servlet.ServletRequest

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface javax.servlet.ServletRequest

getLocalPort

public int getLocalPort()
Specified by:
getLocalPort in interface javax.servlet.ServletRequest

getRemotePort

public int getRemotePort()
Specified by:
getRemotePort in interface javax.servlet.ServletRequest


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.