Package org.cyclos.server.utils
Class RequestEntry
- java.lang.Object
-
- org.cyclos.server.utils.RequestEntry
-
public class RequestEntry extends Object
-
-
Constructor Summary
Constructors Constructor Description RequestEntry(String remoteAddress, javax.servlet.http.HttpServletRequest request, String uri, String protocol, boolean proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()longgetId()StringgetProtocol()StringgetRemoteAddress()javax.servlet.http.HttpServletRequestgetRequest()RequestDatagetRequestData()Non-null only if the underlyinggetUri()is not static file.DategetStartTime()StringgetStaticUri()Non-null only if the underlyinggetUri()is a static file.StringgetUri()Returns the underlying request URI, never nullbooleanisProxy()booleanisStatic()Indicates if the underlyinggetUri()represents a static filevoidsetId(long id)voidsetRequestData(RequestData requestData)
-
-
-
Method Detail
-
getDuration
public long getDuration()
-
getId
public long getId()
-
getProtocol
public String getProtocol()
-
getRemoteAddress
public String getRemoteAddress()
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
-
getRequestData
public RequestData getRequestData()
Non-null only if the underlyinggetUri()is not static file. In this case,getStaticUri()will always be null.
-
getStartTime
public Date getStartTime()
-
getStaticUri
public String getStaticUri()
Non-null only if the underlyinggetUri()is a static file. In this case,getRequestData()will always be null.
-
getUri
public String getUri()
Returns the underlying request URI, never null
-
isProxy
public boolean isProxy()
-
isStatic
public boolean isStatic()
Indicates if the underlyinggetUri()represents a static file
-
setId
public void setId(long id)
-
setRequestData
public void setRequestData(RequestData requestData)
-
-