org.jscience.net
Class ServerLogEntry

java.lang.Object
  extended by org.jscience.net.ServerLogEntry

public class ServerLogEntry
extends java.lang.Object

a log entry from a web-server log

See Also:
ServerLog

Constructor Summary
ServerLogEntry(java.lang.String host, java.lang.String method, java.lang.String url, java.lang.String referer, java.util.Date time, java.lang.String agent, java.lang.String user, short code, java.lang.String protocol)
          Creates a new ServerLogEntry object.
 
Method Summary
 java.lang.String getAgent()
          DOCUMENT ME!
 short getCode()
          DOCUMENT ME!
 java.lang.String getHost()
          DOCUMENT ME!
 java.net.InetAddress getHostAddress()
          DOCUMENT ME!
 java.lang.String getMethod()
          DOCUMENT ME!
 java.lang.String getProtocol()
          DOCUMENT ME!
 java.lang.String getQueryString()
          extracts the query parameter portion of a URL that usually contains the search string that was used to query a search engine
 java.lang.String getReferer()
          DOCUMENT ME!
 java.util.Date getTime()
          DOCUMENT ME!
 java.lang.String getURL()
          DOCUMENT ME!
 java.lang.String getUser()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLogEntry

public ServerLogEntry(java.lang.String host,
                      java.lang.String method,
                      java.lang.String url,
                      java.lang.String referer,
                      java.util.Date time,
                      java.lang.String agent,
                      java.lang.String user,
                      short code,
                      java.lang.String protocol)
Creates a new ServerLogEntry object.

Parameters:
host - DOCUMENT ME!
method - DOCUMENT ME!
url - DOCUMENT ME!
referer - DOCUMENT ME!
time - DOCUMENT ME!
agent - DOCUMENT ME!
user - DOCUMENT ME!
code - DOCUMENT ME!
protocol - DOCUMENT ME!
Method Detail

getHost

public java.lang.String getHost()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getHostAddress

public java.net.InetAddress getHostAddress()
                                    throws java.net.UnknownHostException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.net.UnknownHostException - DOCUMENT ME!

getMethod

public java.lang.String getMethod()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getURL

public java.lang.String getURL()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getReferer

public java.lang.String getReferer()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getTime

public java.util.Date getTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAgent

public java.lang.String getAgent()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getUser

public java.lang.String getUser()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCode

public short getCode()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getProtocol

public java.lang.String getProtocol()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getQueryString

public java.lang.String getQueryString()
extracts the query parameter portion of a URL that usually contains the search string that was used to query a search engine

Returns:
null if no query parameter was present or the UTF-8 decoded query parameter value