com.github.tomakehurst.wiremock.verification
Class LoggedRequest

java.lang.Object
  extended by com.github.tomakehurst.wiremock.verification.LoggedRequest
All Implemented Interfaces:
Request

public class LoggedRequest
extends java.lang.Object
implements Request


Constructor Summary
LoggedRequest()
           
 
Method Summary
 boolean containsHeader(java.lang.String key)
           
static LoggedRequest createFrom(Request request)
           
 java.lang.String getAbsoluteUrl()
           
 java.util.Set<java.lang.String> getAllHeaderKeys()
           
 java.lang.String getBodyAsString()
           
 java.lang.String getHeader(java.lang.String key)
           
 RequestMethod getMethod()
           
 java.lang.String getUrl()
           
 boolean isBrowserProxyRequest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggedRequest

public LoggedRequest()
Method Detail

createFrom

public static LoggedRequest createFrom(Request 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

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

getBodyAsString

public java.lang.String getBodyAsString()
Specified by:
getBodyAsString 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