com.antelmann.net
Class ServerLogEntry
java.lang.Object
com.antelmann.net.ServerLogEntry
- All Implemented Interfaces:
- Timed
public class ServerLogEntry
- extends Object
- implements Timed
a log entry from a web-server log
- Author:
- Holger Antelmann
- See Also:
ServerLog
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerLogEntry
public ServerLogEntry()
getHost
public String getHost()
getHostAddress
public InetAddress getHostAddress()
throws UnknownHostException
- Throws:
UnknownHostException
getMethod
public String getMethod()
getReferer
public String getReferer()
getTime
public long getTime()
- Specified by:
getTime in interface Timed
getAgent
public String getAgent()
getUser
public String getUser()
getCode
public int getCode()
getProtocol
public String getProtocol()
getUrl
public String getUrl()
getPort
public int getPort()
getWebServer
public String getWebServer()
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
setUrl
public void setUrl(String url)
setPort
public void setPort(int port)
setHost
public void setHost(String host)
setMethod
public void setMethod(String method)
setReferer
public void setReferer(String referer)
setTime
public void setTime(long time)
setAgent
public void setAgent(String agent)
setUser
public void setUser(String user)
setCode
public void setCode(int code)
setProtocol
public void setProtocol(String protocol)
setWebServer
public void setWebServer(String webServer)
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads