A B C D E F G H J M P R T W X

A

asJson() - Method in class com.github.restdriver.serverdriver.http.response.DefaultResponse
 
asJson() - Method in interface com.github.restdriver.serverdriver.http.response.Response
Returns the JSON response content as a JsonNode, or throws RuntimeMappingException
asJson(Response) - Static method in class com.github.restdriver.serverdriver.Json
Converts the content of the response to a JSON node.
asJson(String) - Static method in class com.github.restdriver.serverdriver.Json
Converts the given string to a JSON node.
asXml() - Method in class com.github.restdriver.serverdriver.http.response.DefaultResponse
 
asXml() - Method in interface com.github.restdriver.serverdriver.http.response.Response
Returns the XML response content as an org.w3c.Element, or throws RuntimeMappingException
asXml(String) - Static method in class com.github.restdriver.serverdriver.Xml
Converts the given string to an XML element.

B

body(String, String) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Make a RequestBody for PUT or POST.

C

com.github.restdriver.serverdriver - package com.github.restdriver.serverdriver
 
com.github.restdriver.serverdriver.file - package com.github.restdriver.serverdriver.file
 
com.github.restdriver.serverdriver.http - package com.github.restdriver.serverdriver.http
 
com.github.restdriver.serverdriver.http.exception - package com.github.restdriver.serverdriver.http.exception
 
com.github.restdriver.serverdriver.http.request - package com.github.restdriver.serverdriver.http.request
 
com.github.restdriver.serverdriver.http.response - package com.github.restdriver.serverdriver.http.response
 
com.github.restdriver.serverdriver.matchers - package com.github.restdriver.serverdriver.matchers
 
containingValue(Matcher<?>) - Static method in class com.github.restdriver.serverdriver.Json
Creates a new instance of ContainingValue.
ContainingValue - Class in com.github.restdriver.serverdriver.matchers
Matcher which checks that a JSON array contains the specified value.
ContainingValue(Matcher<?>) - Constructor for class com.github.restdriver.serverdriver.matchers.ContainingValue
Create a new instance which uses the given matcher against all values in a JSON array.

D

DefaultResponse - Class in com.github.restdriver.serverdriver.http.response
Our class which describes an HTTP response.
DefaultResponse(HttpResponse, long) - Constructor for class com.github.restdriver.serverdriver.http.response.DefaultResponse
Constructor from apache HttpResponse.
delete(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Send an HTTP delete.
deleteOf(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.delete(Object, Header...).
deleting(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.delete(Object, Header...).
describeMismatchSafely(Response, Description) - Method in class com.github.restdriver.serverdriver.matchers.HasHeader
 
describeMismatchSafely(Response, Description) - Method in class com.github.restdriver.serverdriver.matchers.HasHeaderWithValue
 
describeMismatchSafely(Response, Description) - Method in class com.github.restdriver.serverdriver.matchers.HasStatusCode
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.ContainingValue
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.HasHeader
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.HasHeaderWithValue
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.HasJsonArray
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.HasJsonValue
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.HasResponseBody
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.HasStatusCode
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.WithSize
 
describeTo(Description) - Method in class com.github.restdriver.serverdriver.matchers.WithValueAt
 
doDeleteOf(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.delete(Object, Header...).
doGetOf(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.get(Object, Header...).
doPostOf(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.post(Object, RequestBody, Header...).
doPutOf(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.put(Object, RequestBody, Header...).

E

equals(Object) - Method in class com.github.restdriver.serverdriver.http.Header
 
extractXPathValue(String, Element) - Static method in class com.github.restdriver.serverdriver.Xml
Extracts an XPath value from an XML element and returns the result as a string.

F

FileHelper - Class in com.github.restdriver.serverdriver.file
Utility class to help with loading files from the classpath.
fromFile(String, String) - Static method in class com.github.restdriver.serverdriver.file.FileHelper
Reads in a resource from the class path.
fromFile(String) - Static method in class com.github.restdriver.serverdriver.file.FileHelper
Reads in a resource from the class path, using UTF-8 encoding.

G

get(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Perform an HTTP GET on a resource.
getContent() - Method in class com.github.restdriver.serverdriver.http.request.RequestBody
Gets the content of this request body.
getContent() - Method in class com.github.restdriver.serverdriver.http.response.DefaultResponse
 
getContent() - Method in interface com.github.restdriver.serverdriver.http.response.Response
What was the content of the response?
getContentType() - Method in class com.github.restdriver.serverdriver.http.request.RequestBody
Gets the content-type of this request body.
getHeaders() - Method in class com.github.restdriver.serverdriver.http.response.DefaultResponse
 
getHeaders() - Method in interface com.github.restdriver.serverdriver.http.response.Response
What headers did the server send?
getName() - Method in class com.github.restdriver.serverdriver.http.Header
Get the name of this header.
getOf(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.get(Object, Header...).
getResponseTime() - Method in class com.github.restdriver.serverdriver.http.response.DefaultResponse
 
getResponseTime() - Method in interface com.github.restdriver.serverdriver.http.response.Response
How long did the response take?
getStatusCode() - Method in class com.github.restdriver.serverdriver.http.response.DefaultResponse
 
getStatusCode() - Method in interface com.github.restdriver.serverdriver.http.response.Response
What was the response code?
getting(Object, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.get(Object, Header...).
getValue() - Method in class com.github.restdriver.serverdriver.http.Header
Get the value of this header.

H

hashCode() - Method in class com.github.restdriver.serverdriver.http.Header
 
HasHeader - Class in com.github.restdriver.serverdriver.matchers
Matcher to assert on the headers in an HTTP response.
hasHeader(String) - Static method in class com.github.restdriver.serverdriver.Matchers
Creates a new instance of HasHeader.
HasHeader(String) - Constructor for class com.github.restdriver.serverdriver.matchers.HasHeader
Creates an instance of this matcher.
HasHeaderWithValue - Class in com.github.restdriver.serverdriver.matchers
Matcher to enable assertion on HTTP header values.
hasHeaderWithValue(String, Matcher<String>) - Static method in class com.github.restdriver.serverdriver.Matchers
Creates a new instance of HasHeaderWithValue.
HasHeaderWithValue(String, Matcher<String>) - Constructor for class com.github.restdriver.serverdriver.matchers.HasHeaderWithValue
Creates a new instance of this matcher.
hasJsonArray(String, Matcher<?>) - Static method in class com.github.restdriver.serverdriver.Json
Creates a new instance of HasJsonArray.
HasJsonArray - Class in com.github.restdriver.serverdriver.matchers
Matcher to verify that a JsonNode has an array with the specified field name.
HasJsonArray(String, Matcher<?>) - Constructor for class com.github.restdriver.serverdriver.matchers.HasJsonArray
Create an instance of this matcher.
hasJsonValue(String, Matcher<?>) - Static method in class com.github.restdriver.serverdriver.Json
Creates a new instance of HasJsonValue.
HasJsonValue - Class in com.github.restdriver.serverdriver.matchers
Matcher to check that a given key has a particular value in a JsonNode.
HasJsonValue(String, Matcher<?>) - Constructor for class com.github.restdriver.serverdriver.matchers.HasJsonValue
Creates an instance of this matcher.
HasResponseBody - Class in com.github.restdriver.serverdriver.matchers
Matcher to check that an HttpResponse has the specified body.
hasResponseBody(Matcher<String>) - Static method in class com.github.restdriver.serverdriver.Matchers
Creates a new instance of HasResponseBody.
HasResponseBody(Matcher<String>) - Constructor for class com.github.restdriver.serverdriver.matchers.HasResponseBody
Creates a new instance of this matcher.
HasStatusCode - Class in com.github.restdriver.serverdriver.matchers
Matcher to check whether an HTTP response has a particular status code.
hasStatusCode(int) - Static method in class com.github.restdriver.serverdriver.Matchers
Creates a new instance of HasStatusCode.
hasStatusCode(Matcher<Integer>) - Static method in class com.github.restdriver.serverdriver.Matchers
Creates a new instance of HasStatusCode.
HasStatusCode(Matcher<Integer>) - Constructor for class com.github.restdriver.serverdriver.matchers.HasStatusCode
Creates an instance of this matcher.
Header - Class in com.github.restdriver.serverdriver.http
Represents an HTTP header.
Header(String, String) - Constructor for class com.github.restdriver.serverdriver.http.Header
Creates a new header instance.
header(String, String) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Make a Header.

J

Json - Class in com.github.restdriver.serverdriver
Class supplying static methods to help with JSON representations.

M

Matchers - Class in com.github.restdriver.serverdriver
Class to help easy & fluent use of our matchers.
matchesSafely(JsonNode) - Method in class com.github.restdriver.serverdriver.matchers.ContainingValue
 
matchesSafely(Response) - Method in class com.github.restdriver.serverdriver.matchers.HasHeader
 
matchesSafely(Response) - Method in class com.github.restdriver.serverdriver.matchers.HasHeaderWithValue
 
matchesSafely(JsonNode) - Method in class com.github.restdriver.serverdriver.matchers.HasJsonArray
 
matchesSafely(JsonNode) - Method in class com.github.restdriver.serverdriver.matchers.HasJsonValue
 
matchesSafely(Response) - Method in class com.github.restdriver.serverdriver.matchers.HasResponseBody
 
matchesSafely(Response) - Method in class com.github.restdriver.serverdriver.matchers.HasStatusCode
 
matchesSafely(JsonNode) - Method in class com.github.restdriver.serverdriver.matchers.WithSize
 
matchesSafely(JsonNode) - Method in class com.github.restdriver.serverdriver.matchers.WithValueAt
 

P

post(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Perform an HTTP POST to the given URL.
posting(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.post(Object, RequestBody, Header...).
postOf(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.post(Object, RequestBody, Header...).
put(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Perform an HTTP PUT to the given URL.
putOf(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.put(Object, RequestBody, Header...).
putting(Object, RequestBody, Header...) - Static method in class com.github.restdriver.serverdriver.RestServerDriver
Synonym for RestServerDriver.put(Object, RequestBody, Header...).

R

RequestBody - Class in com.github.restdriver.serverdriver.http.request
Encapsulates a Request body for a PUT or a POST.
RequestBody(String, String) - Constructor for class com.github.restdriver.serverdriver.http.request.RequestBody
Creates a new request body instance.
Response - Interface in com.github.restdriver.serverdriver.http.response
Encapsulates a response from an HTTP server.
RestServerDriver - Class in com.github.restdriver.serverdriver
Provides static methods for performing HTTP requests against a resource.
RuntimeFileNotFoundException - Exception in com.github.restdriver.serverdriver.file
Runtime wrapper for FileNotFoundException.
RuntimeFileNotFoundException(FileNotFoundException) - Constructor for exception com.github.restdriver.serverdriver.file.RuntimeFileNotFoundException
Creates a new instance of the exception.
RuntimeHttpHostConnectException - Exception in com.github.restdriver.serverdriver.http.exception
Runtime wrapper for HttpHostConnectException.
RuntimeHttpHostConnectException(HttpHostConnectException) - Constructor for exception com.github.restdriver.serverdriver.http.exception.RuntimeHttpHostConnectException
Create a new instance of the exception with a given cause.
RuntimeMappingException - Exception in com.github.restdriver.serverdriver.http.exception
Exception thrown when HTTP response bodies cannot be mapped to Java Objects as expected.
RuntimeMappingException(String, Exception) - Constructor for exception com.github.restdriver.serverdriver.http.exception.RuntimeMappingException
Create a new exception.
RuntimeUnknownHostException - Exception in com.github.restdriver.serverdriver.http.exception
RuntimeException wrapper for UnknownHostException.
RuntimeUnknownHostException(UnknownHostException) - Constructor for exception com.github.restdriver.serverdriver.http.exception.RuntimeUnknownHostException
Create a new instance with a specific cause.

T

toString() - Method in class com.github.restdriver.serverdriver.http.Header
 
toString() - Method in class com.github.restdriver.serverdriver.http.response.DefaultResponse
 

W

withSize(Matcher<?>) - Static method in class com.github.restdriver.serverdriver.Json
Creates a new instance of WithSize.
WithSize - Class in com.github.restdriver.serverdriver.matchers
Matcher to check the size of a Json array.
WithSize(Matcher<?>) - Constructor for class com.github.restdriver.serverdriver.matchers.WithSize
Creates a new instance of this matcher.
withValueAt(int, Matcher<?>) - Static method in class com.github.restdriver.serverdriver.Json
Creates a new instance of WithValueAt.
WithValueAt - Class in com.github.restdriver.serverdriver.matchers
Matcher to check that a JSON array has a particular value at the specified index.
WithValueAt(int, Matcher<?>) - Constructor for class com.github.restdriver.serverdriver.matchers.WithValueAt
Create a new instance of this matcher.

X

Xml - Class in com.github.restdriver.serverdriver
Provides static helper methods for XML representations.

A B C D E F G H J M P R T W X

Copyright © 2011. All Rights Reserved.