public class SimpleGetRequest extends Request
Request used
 for testing. Call the method setParam(String, String) to
 emulate some parameter values.Request.Part| Constructor and Description | 
|---|
| SimpleGetRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getMediaType()Returns the requested MIME type, or  "application/octet-stream"if not specified. | 
| Map<String,String> | getParams() | 
| String | getPath()Return path of the request | 
| boolean | hasParam(String key)Return true of the parameter is set. | 
| LocalConnector | localConnector()Allows a web service to call another web service. | 
| String | method()Returns the name of the HTTP method with which this request was made. | 
| String | param(String key) | 
| InputStream | paramAsInputStream(String key) | 
| Request.Part | paramAsPart(String key) | 
| SimpleGetRequest | setMediaType(String mediaType) | 
| SimpleGetRequest | setParam(String key,
        String value) | 
| SimpleGetRequest | setPart(String key,
       InputStream input,
       String fileName) | 
| SimpleGetRequest | setPath(String path) | 
mandatoryParam, mandatoryParamAsBoolean, mandatoryParamAsEnum, mandatoryParamAsInt, mandatoryParamAsLong, mandatoryParamAsPart, mandatoryParamAsStrings, param, paramAsBoolean, paramAsBoolean, paramAsDate, paramAsDateTime, paramAsEnum, paramAsEnums, paramAsInt, paramAsInt, paramAsLong, paramAsLong, paramAsStringspublic SimpleGetRequest()
public String method()
Requestpublic String getMediaType()
Request"application/octet-stream" if not specified.getMediaType in class Requestpublic SimpleGetRequest setMediaType(String mediaType)
public boolean hasParam(String key)
Requestpublic InputStream paramAsInputStream(String key)
paramAsInputStream in class Requestpublic SimpleGetRequest setParam(String key, @Nullable String value)
public Request.Part paramAsPart(String key)
paramAsPart in class Requestpublic SimpleGetRequest setPart(String key, InputStream input, String fileName)
public LocalConnector localConnector()
RequestlocalConnector in class RequestLocalConnectorpublic SimpleGetRequest setPath(String path)
Copyright © 2009–2016 SonarSource. All rights reserved.