com.github.tomakehurst.wiremock.servlet
Class HttpServletRequestAdapter
java.lang.Object
com.github.tomakehurst.wiremock.servlet.HttpServletRequestAdapter
- All Implemented Interfaces:
- Request
public class HttpServletRequestAdapter
- extends java.lang.Object
- implements Request
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServletRequestAdapter
public HttpServletRequestAdapter(javax.servlet.http.HttpServletRequest request)
getUrl
public java.lang.String getUrl()
- Specified by:
getUrl in interface Request
getAbsoluteUrl
public java.lang.String getAbsoluteUrl()
- Specified by:
getAbsoluteUrl in interface Request
getMethod
public RequestMethod getMethod()
- Specified by:
getMethod in interface Request
getBodyAsString
public java.lang.String getBodyAsString()
- Specified by:
getBodyAsString in interface Request
getHeader
public java.lang.String getHeader(java.lang.String key)
- Specified by:
getHeader in interface Request
containsHeader
public boolean containsHeader(java.lang.String key)
- Specified by:
containsHeader in interface Request
getAllHeaderKeys
public java.util.Set<java.lang.String> getAllHeaderKeys()
- Specified by:
getAllHeaderKeys in interface Request
isBrowserProxyRequest
public boolean isBrowserProxyRequest()
- Specified by:
isBrowserProxyRequest in interface Request