org.glite.authz.common.logging
Class AccessLogEntry

java.lang.Object
  extended by org.glite.authz.common.logging.AccessLogEntry

public class AccessLogEntry
extends java.lang.Object

Data object for generating service access logs.


Constructor Summary
AccessLogEntry(javax.servlet.http.HttpServletRequest request)
          Constructor.
AccessLogEntry(java.lang.String remote, java.lang.String host, int port, java.lang.String path)
          Constructor.
 
Method Summary
 java.lang.String getRemoteHost()
          Gets the remote client host or IP address.
 java.lang.String getRequestPath()
          Gets the request path without servlet context information.
 long getRequestTime()
          Gets the time the request was made.
 java.lang.String getServerHost()
          Gets the server's host name or IP address.
 int getServerPort()
          Gets the server's port number.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessLogEntry

public AccessLogEntry(javax.servlet.http.HttpServletRequest request)
Constructor.

Parameters:
request - the request

AccessLogEntry

public AccessLogEntry(java.lang.String remote,
                      java.lang.String host,
                      int port,
                      java.lang.String path)
Constructor.

Parameters:
remote - the remote client host name or IP
host - the servers host name or IP
port - the servers port number
path - the request path information minus the servlet context information
Method Detail

getRemoteHost

public java.lang.String getRemoteHost()
Gets the remote client host or IP address.

Returns:
remote client host or IP address

getRequestPath

public java.lang.String getRequestPath()
Gets the request path without servlet context information.

Returns:
request path without servlet context information

getRequestTime

public long getRequestTime()
Gets the time the request was made.

Returns:
time the request was made

getServerHost

public java.lang.String getServerHost()
Gets the server's host name or IP address.

Returns:
server's host name or IP address

getServerPort

public int getServerPort()
Gets the server's port number.

Returns:
server's port number

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.