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(java.lang.String name,
java.lang.String value)
Adds a parameter with the given
name and value. |
OperationRequest |
preprocess(OperationRequest request)
Returns the given
request as-is. |
ParametersModifyingOperationPreprocessor |
remove(java.lang.String name)
Removes the parameter with the given
name. |
ParametersModifyingOperationPreprocessor |
remove(java.lang.String name,
java.lang.String value)
Removes the given
value from the parameter with the given name. |
ParametersModifyingOperationPreprocessor |
set(java.lang.String name,
java.lang.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(java.lang.String name, java.lang.String value)
name and value.name - the namevalue - the valuethispublic ParametersModifyingOperationPreprocessor set(java.lang.String name, java.lang.String... values)
name to have the given values.name - the namevalues - the valuesthispublic ParametersModifyingOperationPreprocessor remove(java.lang.String name)
name.name - the name of the parameterthispublic ParametersModifyingOperationPreprocessor remove(java.lang.String name, java.lang.String value)
value from the parameter with the given name.name - the namevalue - the valuethis