deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.enterprise.control
Class RequestUser

java.lang.Object
  extended by org.deegree.enterprise.control.RequestUser

 class RequestUser
extends Object

Encapsulates all client information.

Version:
$Revision: 9338 $ $Date: 2007-12-27 13:31:31 +0100 (Do, 27 Dez 2007) $
Author:
Torsten Friebe, Andreas Poth

Constructor Summary
protected RequestUser()
          Creates an empty object.
  RequestUser(HttpServletRequest request)
          Creates a request user object with client information retrieved out of the request object.
 
Method Summary
 String getAuthType()
          Authorization scheme
 String getRemoteAddr()
          Remote address
 String getRemoteHost()
          Remote host
 String getRemoteUser()
          Remote user
protected  Object getRequestValue(HttpServletRequest request, String methodName, Object defaultValue)
           
 String getUserPrincipal()
          Authenticated user
protected  void parseRequest(HttpServletRequest request)
          Parse request object for user specific attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestUser

protected RequestUser()
Creates an empty object.


RequestUser

public RequestUser(HttpServletRequest request)
Creates a request user object with client information retrieved out of the request object.

Parameters:
request - the request object containing user and client data
Method Detail

getRemoteUser

public String getRemoteUser()
Remote user


getRemoteAddr

public String getRemoteAddr()
Remote address


getRemoteHost

public String getRemoteHost()
Remote host


getAuthType

public String getAuthType()
Authorization scheme


getUserPrincipal

public String getUserPrincipal()
Authenticated user


parseRequest

protected void parseRequest(HttpServletRequest request)
Parse request object for user specific attributes.


getRequestValue

protected Object getRequestValue(HttpServletRequest request,
                                 String methodName,
                                 Object defaultValue)
                          throws NoSuchMethodException,
                                 InvocationTargetException,
                                 IllegalAccessException
Parameters:
request -
methodName -
defaultValue -
Returns:
Throws:
NoSuchMethodException
InvocationTargetException
IllegalAccessException

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net