org.sonar.api.server.ws.internal
Class SimpleGetRequest

java.lang.Object
  extended by org.sonar.api.server.ws.Request
      extended by org.sonar.api.server.ws.internal.SimpleGetRequest

public class SimpleGetRequest
extends Request

Fake implementation of Request used for testing. Call the method setParam(String, String) to emulate some parameter values.


Constructor Summary
SimpleGetRequest()
           
 
Method Summary
 String method()
          Returns the name of the HTTP method with which this request was made.
 String param(String key)
           
 SimpleGetRequest setParam(String key, String value)
           
 
Methods inherited from class org.sonar.api.server.ws.Request
mandatoryParam, mandatoryParamAsBoolean, mandatoryParamAsEnum, mandatoryParamAsInt, mandatoryParamAsLong, mandatoryParamAsStrings, param, paramAsBoolean, paramAsBoolean, paramAsDate, paramAsDateTime, paramAsEnum, paramAsEnums, paramAsInt, paramAsInt, paramAsLong, paramAsLong, paramAsStrings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGetRequest

public SimpleGetRequest()
Method Detail

method

public String method()
Description copied from class: Request
Returns the name of the HTTP method with which this request was made. Possible values are GET and POST. Others are not supported.

Specified by:
method in class Request

param

public String param(String key)
Specified by:
param in class Request

setParam

public SimpleGetRequest setParam(String key,
                                 @Nullable
                                 String value)


Copyright © 2009–2015 SonarSource. All rights reserved.