java.lang.Object
com.aoapps.net.UnmodifiableURIParameters
- All Implemented Interfaces:
Writable,URIParameters
Protects a set of parameters from modification.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(Encoder encoder, Appendable out) voidappendTo(Encoder encoder, Appendable out, long start, long end) voidappendTo(Appendable out) voidappendTo(Appendable out, long start, long end) longgetParameter(String name) Gets the value for the provided parameter name ornullif doesn't exist.Gets an unmodifiable map view of all parameters.Gets an unmodifiable iterator of the parameter names.getParameterValues(String name) Gets an unmodifiable view of all values for a multi-value parameter ornullif has no values.booleantoString()Gets the query string encoded in the default encodingIRI.ENCODING, not including the '?'static URIParameterswrap(URIParameters wrapped) Wraps the given parameters to ensure they are unmodifiable.voidvoidvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.aoapps.net.URIParameters
trim
-
Method Details
-
wrap
Wraps the given parameters to ensure they are unmodifiable.- Returns:
nullwhen wrapped isnull, otherwise unmodifiable parameters
-
toString
Gets the query string encoded in the default encodingIRI.ENCODING, not including the '?' prefix. -
getParameter
Description copied from interface:URIParametersGets the value for the provided parameter name ornullif doesn't exist. If the parameter has multiple values, the first value is returned.- Specified by:
getParameterin interfaceURIParameters
-
getParameterNames
Description copied from interface:URIParametersGets an unmodifiable iterator of the parameter names.- Specified by:
getParameterNamesin interfaceURIParameters
-
getParameterValues
Description copied from interface:URIParametersGets an unmodifiable view of all values for a multi-value parameter ornullif has no values.- Specified by:
getParameterValuesin interfaceURIParameters
-
getParameterMap
Description copied from interface:URIParametersGets an unmodifiable map view of all parameters.- Specified by:
getParameterMapin interfaceURIParameters
-
getLength
- Specified by:
getLengthin interfaceURIParameters- Specified by:
getLengthin interfaceWritable- Throws:
IOException
-
isFastToString
public boolean isFastToString()- Specified by:
isFastToStringin interfaceURIParameters- Specified by:
isFastToStringin interfaceWritable
-
writeTo
- Specified by:
writeToin interfaceURIParameters- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceURIParameters- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceURIParameters- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceURIParameters- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
appendTo
Description copied from interface:URIParameters- Specified by:
appendToin interfaceURIParameters- Specified by:
appendToin interfaceWritable- Throws:
IOException- See Also:
-
appendTo
- Specified by:
appendToin interfaceURIParameters- Specified by:
appendToin interfaceWritable- Throws:
IOException
-
appendTo
Description copied from interface:URIParameters- Specified by:
appendToin interfaceURIParameters- Specified by:
appendToin interfaceWritable- Throws:
IOException- See Also:
-
appendTo
- Specified by:
appendToin interfaceURIParameters- Specified by:
appendToin interfaceWritable- Throws:
IOException
-
