Holger's
Java API

com.antelmann.net
Class ServerLogEntry

java.lang.Object
  extended by com.antelmann.net.ServerLogEntry

public class ServerLogEntry
extends Object

a log entry from a web-server log

Author:
Holger Antelmann
See Also:
ServerLog

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

Constructor Detail

ServerLogEntry

public ServerLogEntry(String host,
                      String method,
                      String url,
                      String referer,
                      Date time,
                      String agent,
                      String user,
                      short code,
                      String protocol)
Method Detail

getHost

public String getHost()

getHostAddress

public InetAddress getHostAddress()
                           throws UnknownHostException
Throws:
UnknownHostException

getMethod

public String getMethod()

getURL

public String getURL()

getReferer

public String getReferer()

getTime

public Date getTime()

getAgent

public String getAgent()

getUser

public String getUser()

getCode

public short getCode()

getProtocol

public String getProtocol()

getQueryString

public 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


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads