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 TypeMethodDescriptionvoid
appendTo
(Encoder encoder, Appendable out) void
appendTo
(Encoder encoder, Appendable out, long start, long end) void
appendTo
(Appendable out) void
appendTo
(Appendable out, long start, long end) long
getParameter
(String name) Gets the value for the provided parameter name ornull
if 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 ornull
if has no values.boolean
toString()
Gets the query string encoded in the default encodingIRI.ENCODING
, not including the '?'static URIParameters
wrap
(URIParameters wrapped) Wraps the given parameters to ensure they are unmodifiable.void
void
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aoapps.net.URIParameters
trim
-
Method Details
-
wrap
Wraps the given parameters to ensure they are unmodifiable.- Returns:
null
when 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:URIParameters
Gets the value for the provided parameter name ornull
if doesn't exist. If the parameter has multiple values, the first value is returned.- Specified by:
getParameter
in interfaceURIParameters
-
getParameterNames
Description copied from interface:URIParameters
Gets an unmodifiable iterator of the parameter names.- Specified by:
getParameterNames
in interfaceURIParameters
-
getParameterValues
Description copied from interface:URIParameters
Gets an unmodifiable view of all values for a multi-value parameter ornull
if has no values.- Specified by:
getParameterValues
in interfaceURIParameters
-
getParameterMap
Description copied from interface:URIParameters
Gets an unmodifiable map view of all parameters.- Specified by:
getParameterMap
in interfaceURIParameters
-
getLength
- Specified by:
getLength
in interfaceURIParameters
- Specified by:
getLength
in interfaceWritable
- Throws:
IOException
-
isFastToString
public boolean isFastToString()- Specified by:
isFastToString
in interfaceURIParameters
- Specified by:
isFastToString
in interfaceWritable
-
writeTo
- Specified by:
writeTo
in interfaceURIParameters
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceURIParameters
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceURIParameters
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceURIParameters
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
appendTo
Description copied from interface:URIParameters
- Specified by:
appendTo
in interfaceURIParameters
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
- See Also:
-
appendTo
- Specified by:
appendTo
in interfaceURIParameters
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
-
appendTo
Description copied from interface:URIParameters
- Specified by:
appendTo
in interfaceURIParameters
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
- See Also:
-
appendTo
- Specified by:
appendTo
in interfaceURIParameters
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
-