|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.log.AccessLogEntry
public class AccessLogEntry
Data object for generating server access logs.
Field Summary | |
---|---|
static String |
ACCESS_LOGGER_NAME
Name of the Shibboleth Access logging category. |
private static org.joda.time.format.DateTimeFormatter |
dateFormatter
Formatter used to convert timestamps to strings. |
private String |
remoteHost
Hostname or IP address of the remote host. |
private String |
requestPath
Path of the request. |
private org.joda.time.DateTime |
requestTime
Request timestamp. |
private String |
serverHost
Hostname or IP address of the server. |
private int |
serverPort
Port the request came in on. |
Constructor Summary | |
---|---|
AccessLogEntry(javax.servlet.http.HttpServletRequest request)
Constructor. |
|
AccessLogEntry(String remote,
String host,
int port,
String path)
Constructor. |
Method Summary | |
---|---|
String |
getRemoteHost()
Gets the remote client host or IP address. |
String |
getRequestPath()
Gets the request path without servlet context information. |
org.joda.time.DateTime |
getRequestTime()
Gets the time the request was made. |
String |
getServerHost()
Gets the server's host name or IP address. |
int |
getServerPort()
Gets the server's port number. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ACCESS_LOGGER_NAME
private static org.joda.time.format.DateTimeFormatter dateFormatter
private org.joda.time.DateTime requestTime
private String remoteHost
private String serverHost
private int serverPort
private String requestPath
Constructor Detail |
---|
public AccessLogEntry(javax.servlet.http.HttpServletRequest request)
request
- the requestpublic AccessLogEntry(String remote, String host, int port, String path)
remote
- the remote client host name or IPhost
- the servers host name or IPport
- the servers port numberpath
- the request path informatio minus the servlet context informationMethod Detail |
---|
public String getRemoteHost()
public String getRequestPath()
public org.joda.time.DateTime getRequestTime()
public String getServerHost()
public int getServerPort()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |