org.talika.tarsis.command
Class RequestImpl

java.lang.Object
  extended by org.talika.tarsis.command.RequestImpl
All Implemented Interfaces:
Request

public final class RequestImpl
extends java.lang.Object
implements Request

Implementation of Request interface.

Version:
$Revision: 113 $
Author:
Jose M. Palomar
See Also:
Request

Constructor Summary
RequestImpl(javax.servlet.http.HttpServletRequest request)
          Constructs a new RequestImpl object.
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the value of the especified attribute in request.
 java.util.Map getAttributes()
          Returns a map with all attributes in request.
 java.lang.Object getParameter(java.lang.String name)
          Returns the value of the specified parameter in request.
 java.util.Map getParameters()
          Returns a map with all parameters in request.
 User getRemoteUser()
          Returns de user who maked the request.
 Session getSession()
          Returns the session associated with request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestImpl

public RequestImpl(javax.servlet.http.HttpServletRequest request)
Constructs a new RequestImpl object.

Parameters:
request - HttpServletRequest source HttpServletRequest.
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Returns the value of the especified attribute in request.

Specified by:
getAttribute in interface Request
Parameters:
name - String name of attribute.
Returns:
Object value of attribute or null if not found.
See Also:
Request.getAttribute(String)

getAttributes

public java.util.Map getAttributes()
Returns a map with all attributes in request.

Specified by:
getAttributes in interface Request
Returns:
Map map with all attributes in request.
See Also:
Request.getAttributes()

getParameter

public java.lang.Object getParameter(java.lang.String name)
Returns the value of the specified parameter in request.

Specified by:
getParameter in interface Request
Parameters:
name - String name of parameter.
Returns:
Object value of parameter or null if not found.
See Also:
Request.getParameter(String)

getParameters

public java.util.Map getParameters()
Returns a map with all parameters in request.

Specified by:
getParameters in interface Request
Returns:
Map map with all parameters in request.
See Also:
Request.getParameters()

getRemoteUser

public User getRemoteUser()
Returns de user who maked the request.

Specified by:
getRemoteUser in interface Request
Returns:
User user who made the request.
See Also:
Request.getRemoteUser()

getSession

public Session getSession()
Returns the session associated with request.

Specified by:
getSession in interface Request
Returns:
Session session associated with request.
See Also:
Request.getSession()


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.