juju.reattore.protocol.http
Interface HttpRequest

All Superinterfaces:
HttpMessage
All Known Implementing Classes:
BaseHttpRequest

public interface HttpRequest
extends HttpMessage

Encapsulates a HTTP request. Note that a URL is basically of the format

    protocol://[auth:]host/path[?query]
    


Method Summary
 void changePath(java.lang.String path)
          Override the current path.
 java.lang.String getMethod()
          Gets the request method, such as GET, POST, or PUT.
 java.lang.String getOriginalPath()
          Gets the original request path, such as /dir/file.html.
 java.lang.String getPath()
          Gets the request path, such as /dir/file.html.
 java.lang.String getQueryString()
          Gets the request query string, such as name=val&name=val
 java.lang.String getVersion()
          Gets the request HTTP version, such as HTTP/1.1
 
Methods inherited from interface juju.reattore.protocol.http.HttpMessage
getBody, getHeader, getHeaders, getNumHeaders
 

Method Detail

getMethod

public java.lang.String getMethod()
Gets the request method, such as GET, POST, or PUT.

Returns:
The request method.

getPath

public java.lang.String getPath()
Gets the request path, such as /dir/file.html.

Returns:
The request path.

getOriginalPath

public java.lang.String getOriginalPath()
Gets the original request path, such as /dir/file.html.

Returns:
The request path.

getQueryString

public java.lang.String getQueryString()
Gets the request query string, such as name=val&name=val

Returns:
The request query string.

getVersion

public java.lang.String getVersion()
Gets the request HTTP version, such as HTTP/1.1

Returns:
The request query string or "" if missing

changePath

public void changePath(java.lang.String path)
Override the current path.

Parameters:
path - The new path to use. Does not change the original.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.