Package org.eclipse.jgit.junit.http
Class AccessEvent
- java.lang.Object
-
- org.eclipse.jgit.junit.http.AccessEvent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMethod()
Get themethod
.String
getParameter(String name)
Get parameterMap<String,String[]>
getParameters()
Getparameters
String
getPath()
Getpath
.String
getRequestHeader(String name)
Get request headerString
getResponseHeader(String name)
Get response header.int
getStatus()
Get thestatus
.String
toString()
-
-
-
Method Detail
-
getMethod
public String getMethod()
Get themethod
.- Returns:
"GET"
or"POST"
-
getPath
public String getPath()
Getpath
.- Returns:
- path of the file on the server, e.g.
/git/HEAD
.
-
getRequestHeader
public String getRequestHeader(String name)
Get request header- 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)
Get parameter- 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()
Getparameters
- Returns:
- all parameters in the request.
-
getStatus
public int getStatus()
Get thestatus
.- Returns:
- HTTP status code of the response, e.g. 200, 403, 500.
-
getResponseHeader
public String getResponseHeader(String name)
Get response header.- Parameters:
name
- name of the response header to read.- Returns:
- first value of the response header; null if not sent.
-
-