Uses of Class
org.mockserver.model.HttpRequest

Packages that use HttpRequest
org.mockserver.client.serialization   
org.mockserver.client.serialization.java   
org.mockserver.client.serialization.model   
org.mockserver.client.serialization.serializers.request   
org.mockserver.filters   
org.mockserver.mappers   
org.mockserver.matchers   
org.mockserver.mock   
org.mockserver.mock.action   
org.mockserver.model   
org.mockserver.verify   
 

Uses of HttpRequest in org.mockserver.client.serialization
 

Methods in org.mockserver.client.serialization that return HttpRequest
 HttpRequest HttpRequestSerializer.deserialize(String jsonHttpRequest)
           
 

Methods in org.mockserver.client.serialization with parameters of type HttpRequest
 String HttpRequestSerializer.serialize(HttpRequest httpRequest)
           
 String HttpRequestSerializer.serialize(HttpRequest[] httpRequest)
           
 

Method parameters in org.mockserver.client.serialization with type arguments of type HttpRequest
 String HttpRequestSerializer.serialize(List<HttpRequest> httpRequests)
           
 

Uses of HttpRequest in org.mockserver.client.serialization.java
 

Methods in org.mockserver.client.serialization.java with parameters of type HttpRequest
 String HttpRequestToJavaSerializer.serializeAsJava(int numberOfSpacesToIndent, HttpRequest httpRequest)
           
 

Uses of HttpRequest in org.mockserver.client.serialization.model
 

Methods in org.mockserver.client.serialization.model that return HttpRequest
 HttpRequest HttpRequestDTO.buildObject()
           
 

Constructors in org.mockserver.client.serialization.model with parameters of type HttpRequest
HttpRequestDTO(HttpRequest httpRequest)
           
HttpRequestDTO(HttpRequest httpRequest, Boolean not)
           
 

Uses of HttpRequest in org.mockserver.client.serialization.serializers.request
 

Methods in org.mockserver.client.serialization.serializers.request with parameters of type HttpRequest
 void HttpRequestSerializer.serialize(HttpRequest httpRequest, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
           
 

Uses of HttpRequest in org.mockserver.filters
 

Methods in org.mockserver.filters with type parameters of type HttpRequest
<T extends HttpRequest>
T
Filters.applyOnRequestFilters(T httpRequest)
           
<T extends HttpRequest>
HttpResponse
Filters.applyOnResponseFilters(T httpRequest, HttpResponse httpResponse)
           
<T extends HttpRequest>
T
RequestFilter.onRequest(T httpRequest)
           
 

Methods in org.mockserver.filters that return HttpRequest
 HttpRequest LogFilter.onRequest(HttpRequest httpRequest)
           
 HttpRequest HopByHopHeaderFilter.onRequest(HttpRequest httpRequest)
           
 

Methods in org.mockserver.filters that return types with arguments of type HttpRequest
 List<HttpRequest> LogFilter.httpRequests(HttpRequest httpRequest)
           
 

Methods in org.mockserver.filters with parameters of type HttpRequest
 void LogFilter.clear(HttpRequest httpRequest)
           
 void LogFilter.dumpToLog(HttpRequest httpRequest, boolean asJava)
           
 List<HttpRequest> LogFilter.httpRequests(HttpRequest httpRequest)
           
 List<HttpResponse> LogFilter.httpResponses(HttpRequest httpRequest)
           
 HttpRequest LogFilter.onRequest(HttpRequest httpRequest)
           
 HttpRequest HopByHopHeaderFilter.onRequest(HttpRequest httpRequest)
           
 HttpResponse ResponseFilter.onResponse(HttpRequest httpRequest, HttpResponse httpResponse)
           
 HttpResponse LogFilter.onResponse(HttpRequest httpRequest, HttpResponse httpResponse)
           
 Expectation[] LogFilter.retrieve(HttpRequest httpRequest)
           
 Filters Filters.withFilter(HttpRequest httpRequest, Filter filter)
           
 

Uses of HttpRequest in org.mockserver.mappers
 

Methods in org.mockserver.mappers that return HttpRequest
 HttpRequest HttpServletRequestToMockServerRequestDecoder.mapHttpServletRequestToMockServerRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
           
 

Methods in org.mockserver.mappers with parameters of type HttpRequest
static Charset ContentTypeMapper.determineCharsetForMessage(HttpRequest httpRequest)
           
 

Uses of HttpRequest in org.mockserver.matchers
 

Methods in org.mockserver.matchers with parameters of type HttpRequest
 boolean HttpRequestMatcher.matches(HttpRequest httpRequest)
           
 boolean HttpRequestMatcher.matches(HttpRequest httpRequest, boolean logMatchResults)
           
 HttpRequestMatcher MatcherBuilder.transformsToMatcher(HttpRequest httpRequest)
           
 

Constructors in org.mockserver.matchers with parameters of type HttpRequest
HttpRequestMatcher(HttpRequest httpRequest)
           
 

Uses of HttpRequest in org.mockserver.mock
 

Methods in org.mockserver.mock that return HttpRequest
 HttpRequest Expectation.getHttpRequest()
           
 

Methods in org.mockserver.mock with parameters of type HttpRequest
 void MockServerMatcher.clear(HttpRequest httpRequest)
           
 boolean Expectation.contains(HttpRequest httpRequest)
           
 void MockServerMatcher.dumpToLog(HttpRequest httpRequest)
           
 Action MockServerMatcher.handle(HttpRequest httpRequest)
           
 boolean Expectation.matches(HttpRequest httpRequest)
           
 Expectation MockServerMatcher.when(HttpRequest httpRequest)
           
 Expectation MockServerMatcher.when(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
           
 

Constructors in org.mockserver.mock with parameters of type HttpRequest
Expectation(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
           
 

Uses of HttpRequest in org.mockserver.mock.action
 

Methods in org.mockserver.mock.action with parameters of type HttpRequest
 HttpResponse HttpCallbackActionHandler.handle(HttpCallback httpCallback, HttpRequest httpRequest)
           
 HttpResponse HttpForwardActionHandler.handle(HttpForward httpForward, HttpRequest httpRequest)
           
 HttpResponse ExpectationCallback.handle(HttpRequest httpRequest)
          Called for every request when expectation condition has been satisfied.
 HttpResponse ActionHandler.processAction(Action action, HttpRequest httpRequest)
           
 

Uses of HttpRequest in org.mockserver.model
 

Subclasses of HttpRequest in org.mockserver.model
 class OutboundHttpRequest
           
 

Methods in org.mockserver.model that return HttpRequest
 HttpRequest HttpRequest.replaceHeader(Header header)
          Adds one header to match on as a Header object where the header values list can be a list of strings or regular expressions (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
static HttpRequest HttpRequest.request()
           
static HttpRequest HttpRequest.request(String path)
           
 HttpRequest HttpRequest.setKeepAlive(boolean isKeepAlive)
           
 HttpRequest HttpRequest.setSecure(boolean secure)
           
 HttpRequest HttpRequest.withBody(Body body)
          The body match rules on such as using one of the Body subclasses as follows: exact string match: - exact("this is an exact string body"); or - new StringBody("this is an exact string body") regular expression match: - regex("username[a-z]{4}"); or - new RegexBody("username[a-z]{4}"); json match: - json("{username: 'foo', password: 'bar'}"); or - json("{username: 'foo', password: 'bar'}", MatchType.STRICT); or - new JsonBody("{username: 'foo', password: 'bar'}"); json schema match: - jsonSchema("{type: 'object', properties: { 'username': { 'type': 'string' }, 'password': { 'type': 'string' } }, 'required': ['username', 'password']}"); or - jsonSchemaFromResource("org/mockserver/model/loginSchema.json"); or - new JsonSchemaBody("{type: 'object', properties: { 'username': { 'type': 'string' }, 'password': { 'type': 'string' } }, 'required': ['username', 'password']}"); xpath match: - xpath("/element[key = 'some_key' and value = 'some_value']"); or - new XPathBody("/element[key = 'some_key' and value = 'some_value']"); body parameter match: - params( param("name_one", "value_one_one", "value_one_two") param("name_two", "value_two") ); or - new ParameterBody( new Parameter("name_one", "value_one_one", "value_one_two") new Parameter("name_two", "value_two") ); binary match: - binary(IOUtils.readFully(getClass().getClassLoader().getResourceAsStream("example.pdf"), 1024)); or - new BinaryBody(IOUtils.readFully(getClass().getClassLoader().getResourceAsStream("example.pdf"), 1024)); for more details of the supported regular expression syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html for more details of the supported json syntax see http://jsonassert.skyscreamer.org for more details of the supported json schema syntax see http://json-schema.org/ for more detail of XPath syntax see http://saxon.sourceforge.net/saxon6.5.3/expressions.html
 HttpRequest HttpRequest.withBody(byte[] body)
          The body to match on as binary data such as a pdf or image
 HttpRequest HttpRequest.withBody(String body)
          The exact string body to match on such as "this is an exact string body"
 HttpRequest HttpRequest.withBody(String body, Charset charset)
          The exact string body to match on such as "this is an exact string body"
 HttpRequest HttpRequest.withCookie(Cookie cookie)
          Adds one cookie to match on as a Cookie object where the cookie values list can be a list of strings or regular expressions (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withCookie(NottableString name, NottableString value)
          Adds one cookie to match on or to not match on using the NottableString, each NottableString can either be a positive matching value, such as string("match"), or a value to not match on, such as not("do not match"), the string values passed to the NottableString can be a plain string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withCookie(String name, String value)
          Adds one cookie to match on, which can specified using either plain strings or regular expressions (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withCookies(Cookie... cookies)
          The cookies to match on as a varags Cookie objects where the values or keys of each cookie can be either a string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withCookies(List<Cookie> cookies)
          The cookies to match on as a list of Cookie objects where the values or keys of each cookie can be either a string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withHeader(Header header)
          Adds one header to match on as a Header object where the header values list can be a list of strings or regular expressions (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withHeader(NottableString name, NottableString... values)
          Adds one header to match on or to not match on using the NottableString, each NottableString can either be a positive matching value, such as string("match"), or a value to not match on, such as not("do not match"), the string values passed to the NottableString can also be a plain string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withHeader(String name, String... values)
          Adds one header to match which can specified using plain strings or regular expressions (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withHeaders(Header... headers)
          The headers to match on as a varags of Header objects where the values or keys of each header can be either a string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withHeaders(List<Header> headers)
          The headers to match on as a list of Header objects where the values or keys of each header can be either a string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withMethod(NottableString method)
          The HTTP method all method except a specific value using the "not" operator, for example this allows operations such as not("GET")
 HttpRequest HttpRequest.withMethod(String method)
          The HTTP method to match on such as "GET" or "POST"
 HttpRequest HttpRequest.withPath(NottableString path)
          The path to not match on for example not("/some_mocked_path") with match any path not equal to "/some_mocked_path", the servlet context path is ignored for matching and should not be specified here regex values are also supported such as not(".*_path"), see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html for full details of the supported regex syntax
 HttpRequest HttpRequest.withPath(String path)
          The path to match on such as "/some_mocked_path" any servlet context path is ignored for matching and should not be specified here regex values are also supported such as ".*_path", see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html for full details of the supported regex syntax
 HttpRequest HttpRequest.withQueryStringParameter(NottableString name, NottableString... values)
          Adds one query string parameter to match on or to not match on using the NottableString, each NottableString can either be a positive matching value, such as string("match"), or a value to not match on, such as not("do not match"), the string values passed to the NottableString can also be a plain string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withQueryStringParameter(Parameter parameter)
          Adds one query string parameter to match on as a Parameter object where the parameter values list can be a list of strings or regular expressions (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withQueryStringParameter(String name, String... values)
          Adds one query string parameter to match which can specified using plain strings or regular expressions (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withQueryStringParameters(List<Parameter> parameters)
          The query string parameters to match on as a list of Parameter objects where the values or keys of each parameter can be either a string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withQueryStringParameters(Map<String,List<String>> parameters)
          The query string parameters to match on as a Map> where the values or keys of each parameter can be either a string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 HttpRequest HttpRequest.withQueryStringParameters(Parameter... parameters)
          The query string parameters to match on as a varags Parameter objects where the values or keys of each parameter can be either a string or a regex (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
 

Methods in org.mockserver.model with parameters of type HttpRequest
static OutboundHttpRequest OutboundHttpRequest.outboundRequest(InetSocketAddress destination, String contextPath, HttpRequest httpRequest)
           
static OutboundHttpRequest OutboundHttpRequest.outboundRequest(String host, int port, String contextPath, HttpRequest httpRequest)
           
 

Constructors in org.mockserver.model with parameters of type HttpRequest
OutboundHttpRequest(InetSocketAddress destination, String contextPath, HttpRequest httpRequest)
           
 

Uses of HttpRequest in org.mockserver.verify
 

Methods in org.mockserver.verify that return HttpRequest
 HttpRequest Verification.getHttpRequest()
           
 

Methods in org.mockserver.verify that return types with arguments of type HttpRequest
 List<HttpRequest> VerificationSequence.getHttpRequests()
           
 

Methods in org.mockserver.verify with parameters of type HttpRequest
 Verification Verification.withRequest(HttpRequest httpRequest)
           
 VerificationSequence VerificationSequence.withRequests(HttpRequest... httpRequests)
           
 

Method parameters in org.mockserver.verify with type arguments of type HttpRequest
 VerificationSequence VerificationSequence.withRequests(List<HttpRequest> httpRequests)
           
 



Copyright © 2015. All rights reserved.