HTTPCORE-136: Added #removeParameter

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@609315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2008-01-06 14:14:00 +00:00
parent 25e8fa8d01
commit 931953f769
1 changed files with 18 additions and 0 deletions

View File

@ -270,6 +270,24 @@ public class ClientParamsStack extends AbstractHttpParams {
} }
/**
* Does <i>not</i> remove a parameter.
* Parameter stacks are read-only. It is possible, though discouraged,
* to access and modify specific stack entries.
* Derived classes may change this behavior.
*
* @param name ignored
*
* @return nothing
*
* @throws UnsupportedOperationException always
*/
public boolean removeParameter(String name) {
throw new UnsupportedOperationException
("Removing parameters in a stack is not supported.");
}
/** /**
* Does <i>not</i> copy parameters. * Does <i>not</i> copy parameters.
* Parameter stacks are lightweight objects, expected to be instantiated * Parameter stacks are lightweight objects, expected to be instantiated