corelib.services.web.traces
Class WebTraceElement

java.lang.Object
  extended by corelib.services.web.traces.WebTraceElement

public class WebTraceElement
extends java.lang.Object

This class store informations associated to a HTTP request and his associated response. These informations will be displayed by a WebTraceElementRenderer instance.

Since:
0.2.0
Author:
Dominique Liard

Constructor Summary
WebTraceElement(WebTraceLogger traceLogger, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int httpStatusCode)
          Class constructor.
 
Method Summary
 java.lang.String getHttpStatusCode()
          Returns the HTTP status code returned for the associated response.
 WebTraceJvmIndicators getJvmIndicators()
          Returns the JVM indicators acquire at the time where the request was made.
 java.lang.String getMethod()
          Returns the invoked method the the associated HTTP request.
 java.lang.String getRequestEncoding()
          Returns the encoding used by the request.
 java.util.Date getRequestTime()
          Returns the date when the request was be made.
 java.lang.String getRequestTimeString()
          Returns the formated date when the request was be made.
 java.lang.String getRequestURI()
          Returns the requested URI.
 java.lang.String getRequestURL()
          Returns the absolute requested URL.
 java.lang.String getResponseEncoding()
          Returns the encoding used by the response.
 java.lang.String getSessionID()
          Return the session identifier associated to the considered request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTraceElement

public WebTraceElement(WebTraceLogger traceLogger,
                       javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       int httpStatusCode)
Class constructor.

Parameters:
traceLogger - An object that store all traces for the considered request
request - The current HTTP request
response - The current HTTP response
httpStatusCode - The returned HTTP status code
Method Detail

getHttpStatusCode

public java.lang.String getHttpStatusCode()
Returns the HTTP status code returned for the associated response.

Returns:
The HTTP status code.

getRequestTimeString

public java.lang.String getRequestTimeString()
Returns the formated date when the request was be made.

Returns:
The formated date.

getRequestTime

public java.util.Date getRequestTime()
Returns the date when the request was be made.

Returns:
The date object when the request was be made.

getMethod

public java.lang.String getMethod()
Returns the invoked method the the associated HTTP request. This value can usually be GET, POST, HEAD or other supported HTTP methods.

Returns:
The invoked HTTP request method.

getRequestURI

public java.lang.String getRequestURI()
Returns the requested URI.

Returns:
The requested URI.

getRequestURL

public java.lang.String getRequestURL()
Returns the absolute requested URL.

Returns:
The absolute requested URL.

getSessionID

public java.lang.String getSessionID()
Return the session identifier associated to the considered request.

Returns:
The session identifier or "undefined session" if the HTTP session was not started.

getRequestEncoding

public java.lang.String getRequestEncoding()
Returns the encoding used by the request.

Returns:
The encoding used by the request

getResponseEncoding

public java.lang.String getResponseEncoding()
Returns the encoding used by the response.

Returns:
The encoding used by the response

getJvmIndicators

public WebTraceJvmIndicators getJvmIndicators()
Returns the JVM indicators acquire at the time where the request was made.

Returns:
The JVM indicators


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.