|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.kristofa.test.http.HttpRequestImpl
public class HttpRequestImpl
| Constructor Summary | |
|---|---|
HttpRequestImpl()
|
|
HttpRequestImpl(HttpRequest request)
|
|
| Method Summary | |
|---|---|
HttpRequestImpl |
content(byte[] content)
Sets content of message body for request. |
boolean |
equals(Object obj)
|
byte[] |
getContent()
Get content for request. |
Set<HttpMessageHeader> |
getHttpMessageHeaders()
Get http message headers. |
Method |
getMethod()
Gets method for request. |
String |
getPath()
Gets path for request without query parameters. |
Set<QueryParameter> |
getQueryParameters()
Gets query parameters for request. |
int |
hashCode()
|
HttpRequestImpl |
httpMessageHeader(String name,
String value)
Adds a Http message header. |
HttpRequestImpl |
method(Method method)
Sets method for request. |
HttpRequestImpl |
path(String path)
Sets path for request. |
HttpRequestImpl |
queryParameter(String key,
String value)
Adds a query parameter for request. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequestImpl()
public HttpRequestImpl(HttpRequest request)
| Method Detail |
|---|
public HttpRequestImpl method(Method method)
method - Method for request.
public HttpRequestImpl content(byte[] content)
content - Message body for request.
public HttpRequestImpl path(String path)
path - Sets path for request.
public HttpRequestImpl queryParameter(String key,
String value)
key - Parameter key. Should not be empty or null or blank.value - Parameter value. Should not be empty or null or blank.
public HttpRequestImpl httpMessageHeader(String name,
String value)
name - header name. Should not be null or blank.value - header value. Should not be null or blank.
public Method getMethod()
getMethod in interface HttpRequestpublic byte[] getContent()
getContent in interface HttpRequestpublic String getPath()
getPath in interface HttpRequestpublic Set<QueryParameter> getQueryParameters()
getQueryParameters in interface HttpRequestpublic Set<HttpMessageHeader> getHttpMessageHeaders()
getHttpMessageHeaders in interface HttpRequestpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||