java.lang.Object
org.glassfish.grizzly.http.util.RequestURIRef
Request URI holder. Contains 3 types of URI: 1) Original, which represents the URI's original state at time it was
set. 2) Decoded, which has represents URI after being URI and String decoded (internally used by Mapper). 3) Actual,
which is supposed as URI value returned to user.
- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DataChunkgetDecodedRequestURIBC(boolean isSlashAllowed) getDecodedRequestURIBC(boolean isSlashAllowed, Charset charset) final Stringfinal StringgetDecodedURI(boolean isSlashAllowed) getDecodedURI(boolean isSlashAllowed, Charset encoding) final DataChunkfinal DataChunkgetURI()voidinit(byte[] input, int start, int end) voidvoidinit(org.glassfish.grizzly.Buffer input, int start, int end) booleanvoidrecycle()voidsetDecodedURI(String uri) voidsetDefaultURIEncoding(Charset defaultURIEncoding) void
-
Constructor Details
-
RequestURIRef
public RequestURIRef()
-
-
Method Details
-
init
public void init(org.glassfish.grizzly.Buffer input, int start, int end) -
init
public void init(byte[] input, int start, int end) -
init
-
getOriginalRequestURIBC
-
getRequestURIBC
-
getDecodedRequestURIBC
- Throws:
CharConversionException
-
getDecodedRequestURIBC
- Throws:
CharConversionException
-
getDecodedRequestURIBC
public DataChunk getDecodedRequestURIBC(boolean isSlashAllowed, Charset charset) throws CharConversionException - Throws:
CharConversionException
-
getURI
-
getURI
-
setURI
-
getDecodedURI
- Throws:
CharConversionException
-
getDecodedURI
- Throws:
CharConversionException
-
getDecodedURI
public String getDecodedURI(boolean isSlashAllowed, Charset encoding) throws CharConversionException - Throws:
CharConversionException
-
setDecodedURI
-
isDecoded
public boolean isDecoded() -
getDefaultURIEncoding
-
setDefaultURIEncoding
-
recycle
public void recycle()
-