Code example for HttpRequest

Methods: getParams

0
		description.appendText(String.format("HttpRequest containing parameter %s with value %s", this.key, this.value));
	} 
 
	@Override 
	public boolean matchesSafely(HttpRequest request) {
		Object requestValue = request.getParams().getParameter(key);		
		return requestValue != null && this.value.equals(requestValue);
	} 
 
	@Factory 
	public static <T> Matcher<HttpRequest> requestContainingHttpParam(String key, Object value) {						
	    return new IsRequestContainingHttpParam(key, value);
	} 
}