Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://aoindustries.com/contact
public class UnmodifiableHttpParameters extends Object implements HttpParameters
| Modifier and Type | Method and Description |
|---|---|
String |
getParameter(String name)
Gets the value for the provided parameter name or
null if doesn't exist. |
Map<String,List<String>> |
getParameterMap()
Gets an unmodifiable map view of all parameters.
|
Iterator<String> |
getParameterNames()
Gets an unmodifiable interator of the parameter names.
|
List<String> |
getParameterValues(String name)
Gets an unmodifiable view of all values for a multi-value parameter or
null if has no values. |
static HttpParameters |
wrap(HttpParameters wrapped)
Wraps the given parameters to ensure they are unmodifiable.
|
public static HttpParameters wrap(HttpParameters wrapped)
null when wrapped is null, otherwise unmodifiable parameterspublic String getParameter(String name)
HttpParametersnull if doesn't exist.
If the parameter has multiple values, the first value is returned.getParameter in interface HttpParameterspublic Iterator<String> getParameterNames()
HttpParametersgetParameterNames in interface HttpParameterspublic List<String> getParameterValues(String name)
HttpParametersnull if has no values.getParameterValues in interface HttpParameterspublic Map<String,List<String>> getParameterMap()
HttpParametersgetParameterMap in interface HttpParametersCopyright © 2000–2019 AO Industries, Inc.. All rights reserved.