Top Description Fields Constructors Methods
org.glassfish.grizzly.http.util

public Class RequestURIRef

extends Object
Class Inheritance
Static Imports
org.glassfish.grizzly.utils.Charsets.UTF8_CHARSET

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

Field Summary

Modifier and TypeField and Description
private final DataChunk
private Charset
private Charset
private boolean
private final DataChunk
private byte[]
private final DataChunk
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
checkDecodedURICapacity(final int size)

public final DataChunk
public DataChunk
getDecodedRequestURIBC(boolean isSlashAllowed)

public DataChunk
getDecodedRequestURIBC(final boolean isSlashAllowed, final Charset charset)

public final String
public final String
getDecodedURI(final boolean isSlashAllowed)

public String
getDecodedURI(final boolean isSlashAllowed, Charset encoding)

public Charset
public final DataChunk
public final DataChunk
public String
public String
getURI(final Charset encoding)

public void
init(final Buffer input, final int start, final int end)

public void
init(final byte[] input, final int start, final int end)

public void
init(final String requestUri)

public boolean
public void
public void
public void
setDefaultURIEncoding(Charset defaultURIEncoding)

public void
setURI(final String uri)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

decodedRequestURIDCback to summary
private final DataChunk decodedRequestURIDC
decodedURIEncodingback to summary
private Charset decodedURIEncoding
defaultURIEncodingback to summary
private Charset defaultURIEncoding
isDecodedback to summary
private boolean isDecoded
originalRequestURIDCback to summary
private final DataChunk originalRequestURIDC
preallocatedDecodedURIBufferback to summary
private byte[] preallocatedDecodedURIBuffer
requestURIDCback to summary
private final DataChunk requestURIDC
wasSlashAllowedback to summary
private boolean wasSlashAllowed

Constructor Detail

RequestURIRefback to summary
public RequestURIRef()

Method Detail

checkDecodedURICapacityback to summary
private void checkDecodedURICapacity(final int size)
getDecodedRequestURIBCback to summary
public final DataChunk getDecodedRequestURIBC() throws CharConversionException
getDecodedRequestURIBCback to summary
public DataChunk getDecodedRequestURIBC(boolean isSlashAllowed) throws CharConversionException
getDecodedRequestURIBCback to summary
public DataChunk getDecodedRequestURIBC(final boolean isSlashAllowed, final Charset charset) throws CharConversionException
getDecodedURIback to summary
public final String getDecodedURI() throws CharConversionException
getDecodedURIback to summary
public final String getDecodedURI(final boolean isSlashAllowed) throws CharConversionException
getDecodedURIback to summary
public String getDecodedURI(final boolean isSlashAllowed, Charset encoding) throws CharConversionException
getDefaultURIEncodingback to summary
public Charset getDefaultURIEncoding()
getOriginalRequestURIBCback to summary
public final DataChunk getOriginalRequestURIBC()
getRequestURIBCback to summary
public final DataChunk getRequestURIBC()
getURIback to summary
public String getURI()
getURIback to summary
public String getURI(final Charset encoding)
initback to summary
public void init(final Buffer input, final int start, final int end)
initback to summary
public void init(final byte[] input, final int start, final int end)
initback to summary
public void init(final String requestUri)
isDecodedback to summary
public boolean isDecoded()
recycleback to summary
public void recycle()
setDecodedURIback to summary
public void setDecodedURI(String uri)
setDefaultURIEncodingback to summary
public void setDefaultURIEncoding(Charset defaultURIEncoding)
setURIback to summary
public void setURI(final String uri)