public final class ParametersModifyingOperationPreprocessor extends OperationPreprocessorAdapter
OperationPreprocessor that can be used to modify a request's
OperationRequest.getParameters() by adding, setting, and removing parameters.| Constructor and Description |
|---|
ParametersModifyingOperationPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
ParametersModifyingOperationPreprocessor |
add(String name,
String value)
Adds a parameter with the given
name and value. |
OperationRequest |
preprocess(OperationRequest request)
Returns the given
request as-is. |
ParametersModifyingOperationPreprocessor |
remove(String name)
Removes the parameter with the given
name. |
ParametersModifyingOperationPreprocessor |
remove(String name,
String value)
Removes the given
value from the parameter with the given name. |
ParametersModifyingOperationPreprocessor |
set(String name,
String... values)
Sets the parameter with the given
name to have the given values. |
preprocesspublic ParametersModifyingOperationPreprocessor()
public OperationRequest preprocess(OperationRequest request)
OperationPreprocessorAdapterrequest as-is.preprocess in interface OperationPreprocessorpreprocess in class OperationPreprocessorAdapterrequest - the requestpublic ParametersModifyingOperationPreprocessor add(String name, String value)
name and value.name - the namevalue - the valuethispublic ParametersModifyingOperationPreprocessor set(String name, String... values)
name to have the given values.name - the namevalues - the valuesthispublic ParametersModifyingOperationPreprocessor remove(String name)
name.name - the name of the parameterthispublic ParametersModifyingOperationPreprocessor remove(String name, String value)
value from the parameter with the given name.name - the namevalue - the valuethis