org.deegree_impl.enterprise.control
Class RequestUser_Impl

java.lang.Object
  extended byorg.deegree_impl.enterprise.control.RequestUser_Impl
All Implemented Interfaces:
RequestUser

class RequestUser_Impl
extends java.lang.Object
implements RequestUser

Encapsulates all client information.

Version:
$Revision: 1.2 $ $Date: 2004/01/03 13:46:45 $
Author:
Torsten Friebe, Andreas Poth

Field Summary
private  java.util.Properties userData
           
 
Constructor Summary
protected RequestUser_Impl()
          Creates an empty object.
  RequestUser_Impl(HttpServletRequest request)
          Creates a request user object with client information retrieved out of the request object.
 
Method Summary
 java.lang.String getAuthType()
          Authorization scheme
 java.lang.String getRemoteAddr()
          Remote address
 java.lang.String getRemoteHost()
          Remote host
 java.lang.String getRemoteUser()
          Remote user
protected  java.lang.Object getRequestValue(HttpServletRequest request, java.lang.String methodName, java.lang.Object defaultValue)
           
 java.lang.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
 

Field Detail

userData

private java.util.Properties userData
Constructor Detail

RequestUser_Impl

protected RequestUser_Impl()
Creates an empty object.


RequestUser_Impl

public RequestUser_Impl(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()
Remote user

Specified by:
getRemoteUser in interface RequestUser

getRemoteAddr

public java.lang.String getRemoteAddr()
Remote address

Specified by:
getRemoteAddr in interface RequestUser

getRemoteHost

public java.lang.String getRemoteHost()
Remote host

Specified by:
getRemoteHost in interface RequestUser

getAuthType

public java.lang.String getAuthType()
Authorization scheme

Specified by:
getAuthType in interface RequestUser

getUserPrincipal

public java.lang.String getUserPrincipal()
Authenticated user

Specified by:
getUserPrincipal in interface RequestUser

parseRequest

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


getRequestValue

protected java.lang.Object getRequestValue(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:
Throws:
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException