Package org.eclipse.jgit.junit.http
Class AccessEvent
java.lang.Object
org.eclipse.jgit.junit.http.AccessEvent
A single request made through
AppServer.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessEvent(org.eclipse.jetty.server.Request req, org.eclipse.jetty.server.Response rsp) -
Method Summary
Modifier and TypeMethodDescriptioncloneHeaders(org.eclipse.jetty.server.Request req) cloneHeaders(org.eclipse.jetty.server.Response rsp) Get themethod.getParameter(String name) Get parameterGetparametersgetPath()Getpath.getRequestHeader(String name) Get request headergetResponseHeader(String name) Get response header.intGet thestatus.toString()
-
Field Details
-
method
-
uri
-
requestHeaders
-
parameters
-
status
private final int status -
responseHeaders
-
-
Constructor Details
-
AccessEvent
AccessEvent(org.eclipse.jetty.server.Request req, org.eclipse.jetty.server.Response rsp)
-
-
Method Details
-
cloneHeaders
-
cloneHeaders
-
clone
-
getMethod
Get themethod.- Returns:
"GET"or"POST"
-
getPath
Getpath.- Returns:
- path of the file on the server, e.g.
/git/HEAD.
-
getRequestHeader
Get request header- Parameters:
name- name of the request header to read.- Returns:
- first value of the request header; null if not sent.
-
getParameter
Get parameter- Parameters:
name- name of the request parameter to read.- Returns:
- first value of the request parameter; null if not sent.
-
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
Get response header.- Parameters:
name- name of the response header to read.- Returns:
- first value of the response header; null if not sent.
-
toString
-