|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.test.mock.MockRequestConstructor
public final class MockRequestConstructor
Constructs mock request for server testing
Method Summary | |
---|---|
static org.springframework.mock.web.MockHttpServletRequest |
constructMockRequest(java.lang.String method,
java.lang.String requestURI,
javax.ws.rs.core.MediaType mediaType)
Construct a mock request to be used in tests. |
static org.springframework.mock.web.MockHttpServletRequest |
constructMockRequest(java.lang.String method,
java.lang.String requestURI,
java.lang.String acceptHeader)
Construct a mock request to be used in tests. |
static org.springframework.mock.web.MockHttpServletRequest |
constructMockRequest(java.lang.String method,
java.lang.String requestURI,
java.lang.String acceptHeader,
java.util.Map<?,?> parameters,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Construct a mock request to be used in tests. |
static org.springframework.mock.web.MockHttpServletRequest |
constructMockRequest(java.lang.String method,
java.lang.String requestURI,
java.lang.String acceptHeader,
java.lang.String contentType,
byte[] content)
Construct a mock request to be used in tests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.springframework.mock.web.MockHttpServletRequest constructMockRequest(java.lang.String method, java.lang.String requestURI, javax.ws.rs.core.MediaType mediaType)
method
- HTTP methodrequestURI
- request URImediaType
- requested media type
public static org.springframework.mock.web.MockHttpServletRequest constructMockRequest(java.lang.String method, java.lang.String requestURI, java.lang.String acceptHeader)
method
- HTTP methodrequestURI
- request URIacceptHeader
- request Accept header
public static org.springframework.mock.web.MockHttpServletRequest constructMockRequest(java.lang.String method, java.lang.String requestURI, java.lang.String acceptHeader, java.lang.String contentType, byte[] content)
method
- HTTP methodrequestURI
- request URIacceptHeader
- request Accept headercontentType
- request Content Typecontent
- request content
public static org.springframework.mock.web.MockHttpServletRequest constructMockRequest(java.lang.String method, java.lang.String requestURI, java.lang.String acceptHeader, java.util.Map<?,?> parameters, java.util.Map<java.lang.String,java.lang.Object> attributes)
method
- HTTP methodrequestURI
- request URIacceptHeader
- request Accept headerparameters
- request query parametersattributes
- request attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |