org.eclipse.jgit.junit.http
Class AccessEvent

java.lang.Object
  extended by org.eclipse.jgit.junit.http.AccessEvent

public class AccessEvent
extends Object

A single request made through AppServer.


Method Summary
 String getMethod()
           
 String getParameter(String name)
           
 Map<String,String[]> getParameters()
           
 String getPath()
           
 String getRequestHeader(String name)
           
 String getResponseHeader(String name)
           
 int getStatus()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getMethod

public String getMethod()
Returns:
"GET" or "POST"

getPath

public String getPath()
Returns:
path of the file on the server, e.g. /git/HEAD.

getRequestHeader

public String getRequestHeader(String name)
Parameters:
name - name of the request header to read.
Returns:
first value of the request header; null if not sent.

getParameter

public String getParameter(String name)
Parameters:
name - name of the request parameter to read.
Returns:
first value of the request parameter; null if not sent.

getParameters

public Map<String,String[]> getParameters()
Returns:
all parameters in the request.

getStatus

public int getStatus()
Returns:
HTTP status code of the response, e.g. 200, 403, 500.

getResponseHeader

public String getResponseHeader(String name)
Parameters:
name - name of the response header to read.
Returns:
first value of the response header; null if not sent.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.