Package org.glassfish.grizzly.http.util
Class RequestURIRef
- java.lang.Object
-
- org.glassfish.grizzly.http.util.RequestURIRef
-
public class RequestURIRef extends Object
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 Constructor Description RequestURIRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataChunkgetDecodedRequestURIBC()DataChunkgetDecodedRequestURIBC(boolean isSlashAllowed)DataChunkgetDecodedRequestURIBC(boolean isSlashAllowed, Charset charset)StringgetDecodedURI()StringgetDecodedURI(boolean isSlashAllowed)StringgetDecodedURI(boolean isSlashAllowed, Charset encoding)CharsetgetDefaultURIEncoding()DataChunkgetOriginalRequestURIBC()DataChunkgetRequestURIBC()StringgetURI()StringgetURI(Charset encoding)voidinit(byte[] input, int start, int end)voidinit(String requestUri)voidinit(org.glassfish.grizzly.Buffer input, int start, int end)booleanisDecoded()voidrecycle()voidsetDecodedURI(String uri)voidsetDefaultURIEncoding(Charset defaultURIEncoding)voidsetURI(String uri)
-
-
-
Method Detail
-
init
public void init(org.glassfish.grizzly.Buffer input, int start, int end)
-
init
public void init(byte[] input, int start, int end)
-
init
public void init(String requestUri)
-
getOriginalRequestURIBC
public final DataChunk getOriginalRequestURIBC()
-
getRequestURIBC
public final DataChunk getRequestURIBC()
-
getDecodedRequestURIBC
public final DataChunk getDecodedRequestURIBC() throws CharConversionException
- Throws:
CharConversionException
-
getDecodedRequestURIBC
public DataChunk getDecodedRequestURIBC(boolean isSlashAllowed) throws CharConversionException
- Throws:
CharConversionException
-
getDecodedRequestURIBC
public DataChunk getDecodedRequestURIBC(boolean isSlashAllowed, Charset charset) throws CharConversionException
- Throws:
CharConversionException
-
getURI
public String getURI()
-
setURI
public void setURI(String uri)
-
getDecodedURI
public final String getDecodedURI() throws CharConversionException
- Throws:
CharConversionException
-
getDecodedURI
public final String getDecodedURI(boolean isSlashAllowed) throws CharConversionException
- Throws:
CharConversionException
-
getDecodedURI
public String getDecodedURI(boolean isSlashAllowed, Charset encoding) throws CharConversionException
- Throws:
CharConversionException
-
setDecodedURI
public void setDecodedURI(String uri)
-
isDecoded
public boolean isDecoded()
-
getDefaultURIEncoding
public Charset getDefaultURIEncoding()
-
setDefaultURIEncoding
public void setDefaultURIEncoding(Charset defaultURIEncoding)
-
recycle
public void recycle()
-
-