deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.enterprise.control
Class RequestUser

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

 class RequestUser
extends java.lang.Object

Encapsulates all client information.

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Torsten Friebe, Andreas Poth

Constructor Summary
protected RequestUser()
          Creates an empty object.
  RequestUser(javax.servlet.http.HttpServletRequest request)
          Creates a request user object with client information retrieved out of the request object.
 
Method Summary
 java.lang.String getAuthType()
           
 java.lang.String getRemoteAddr()
           
 java.lang.String getRemoteHost()
           
 java.lang.String getRemoteUser()
           
protected  java.lang.Object getRequestValue(javax.servlet.http.HttpServletRequest request, java.lang.String methodName, java.lang.Object defaultValue)
           
 java.lang.String getUserPrincipal()
           
protected  void parseRequest(javax.servlet.http.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(javax.servlet.http.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 java.lang.String getRemoteUser()
Returns:
Remote user

getRemoteAddr

public java.lang.String getRemoteAddr()
Returns:
Remote address

getRemoteHost

public java.lang.String getRemoteHost()
Returns:
Remote host

getAuthType

public java.lang.String getAuthType()
Returns:
Authorization scheme

getUserPrincipal

public java.lang.String getUserPrincipal()
Returns:
the user principal

parseRequest

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

Parameters:
request - to parse

getRequestValue

protected java.lang.Object getRequestValue(javax.servlet.http.HttpServletRequest request,
                                           java.lang.String methodName,
                                           java.lang.Object defaultValue)
                                    throws java.lang.NoSuchMethodException,
                                           java.lang.reflect.InvocationTargetException,
                                           java.lang.IllegalAccessException
Parameters:
request -
methodName -
defaultValue -
Returns:
the value of a request or if the request is null, the methodName is null or empty, null will be returned.
Throws:
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

deegree 2.5 (2011/06/29 09:44 build-8-official)

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