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
-
Method Summary
Modifier and TypeMethodDescriptionfinal DataChunk
getDecodedRequestURIBC
(boolean isSlashAllowed) getDecodedRequestURIBC
(boolean isSlashAllowed, Charset charset) final String
final String
getDecodedURI
(boolean isSlashAllowed) getDecodedURI
(boolean isSlashAllowed, Charset encoding) final DataChunk
final DataChunk
getURI()
void
init
(byte[] input, int start, int end) void
void
init
(org.glassfish.grizzly.Buffer input, int start, int end) boolean
void
recycle()
void
setDecodedURI
(String uri) void
setDefaultURIEncoding
(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()
-