com.bradmcevoy.http
Class DebugFilter.DebugRequest

java.lang.Object
  extended by com.bradmcevoy.http.AbstractRequest
      extended by com.bradmcevoy.http.DebugFilter.DebugRequest
All Implemented Interfaces:
Request
Enclosing class:
DebugFilter

public class DebugFilter.DebugRequest
extends AbstractRequest


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.bradmcevoy.http.Request
Request.CacheControlRequest, Request.Depth, Request.Header, Request.Method
 
Field Summary
 
Fields inherited from class com.bradmcevoy.http.AbstractRequest
INFINITY
 
Constructor Summary
DebugFilter.DebugRequest(Request r)
           
 
Method Summary
 java.lang.String getAbsoluteUrl()
          Return the complete URL, including protocol, host and port (if specified) and path
 Auth getAuthorization()
           
 Cookie getCookie(java.lang.String name)
          This is used to acquire a cookie using the name of that cookie.
 java.util.List<Cookie> getCookies()
          This is used to acquire all cookies that were sent in the header.
 java.lang.String getFromAddress()
           
 java.util.Map<java.lang.String,java.lang.String> getHeaders()
           
 java.io.InputStream getInputStream()
           
 Request.Method getMethod()
           
 java.lang.String getRemoteAddr()
          Returns the IP of the remote client
 java.lang.String getRequestHeader(Request.Header header)
           
 void parseRequestParameters(java.util.Map<java.lang.String,java.lang.String> params, java.util.Map<java.lang.String,FileItem> files)
           
 void record(java.io.OutputStream out)
           
 void setAuthorization(Auth auth)
          Maybe called by the milton framework after successful non-http authentication
 
Methods inherited from class com.bradmcevoy.http.AbstractRequest
getAbsolutePath, getAcceptEncodingHeader, getAcceptHeader, getAttributes, getContentLengthHeader, getContentRangeHeader, getContentTypeHeader, getDepthHeader, getDestinationHeader, getExpectHeader, getFiles, getHostHeader, getIfHeader, getIfModifiedHeader, getLockTokenHeader, getOverwriteHeader, getParams, getRangeHeader, getRefererHeader, getTimeoutHeader, getUserAgentHeader, stripToPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugFilter.DebugRequest

public DebugFilter.DebugRequest(Request r)
Method Detail

getHeaders

public java.util.Map<java.lang.String,java.lang.String> getHeaders()

getRequestHeader

public java.lang.String getRequestHeader(Request.Header header)
Specified by:
getRequestHeader in interface Request
Specified by:
getRequestHeader in class AbstractRequest

getFromAddress

public java.lang.String getFromAddress()

getMethod

public Request.Method getMethod()

getAuthorization

public Auth getAuthorization()

setAuthorization

public void setAuthorization(Auth auth)
Description copied from interface: Request
Maybe called by the milton framework after successful non-http authentication

Parameters:
auth - - the new auth object

getAbsoluteUrl

public java.lang.String getAbsoluteUrl()
Description copied from interface: Request
Return the complete URL, including protocol, host and port (if specified) and path


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

parseRequestParameters

public void parseRequestParameters(java.util.Map<java.lang.String,java.lang.String> params,
                                   java.util.Map<java.lang.String,FileItem> files)
                            throws RequestParseException
Throws:
RequestParseException

record

public void record(java.io.OutputStream out)

getCookie

public Cookie getCookie(java.lang.String name)
Description copied from interface: Request
This is used to acquire a cookie using the name of that cookie. If the cookie exists within the HTTP header then it is returned as a Cookie object. Otherwise this method will return null. Each cookie object will contain the name, value and path of the cookie as well as the optional domain part.

Parameters:
name - this is the name of the cookie object to acquire
Returns:
this returns a cookie object from the header or null

getCookies

public java.util.List<Cookie> getCookies()
Description copied from interface: Request
This is used to acquire all cookies that were sent in the header. If any cookies exists within the HTTP header they are returned as Cookie objects. Otherwise this method will an empty list. Each cookie object will contain the name, value and path of the cookie as well as the optional domain part.

Returns:
this returns all cookie objects from the HTTP header

getRemoteAddr

public java.lang.String getRemoteAddr()
Description copied from interface: Request
Returns the IP of the remote client

Returns:


Copyright © 2011. All Rights Reserved.