org.glassfish.grizzly.http.util
Class RequestURIRef

java.lang.Object
  extended by 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
RequestURIRef()
           
 
Method Summary
 DataChunk getDecodedRequestURIBC()
           
 DataChunk getDecodedRequestURIBC(boolean isSlashAllowed)
           
 DataChunk getDecodedRequestURIBC(boolean isSlashAllowed, Charset charset)
           
 String getDecodedURI()
           
 String getDecodedURI(boolean isSlashAllowed)
           
 String getDecodedURI(boolean isSlashAllowed, Charset encoding)
           
 Charset getDefaultURIEncoding()
           
 DataChunk getOriginalRequestURIBC()
           
 DataChunk getRequestURIBC()
           
 String getURI()
           
 String getURI(Charset encoding)
           
 void init(Buffer input, int start, int end)
           
 void init(byte[] input, int start, int end)
           
 boolean isDecoded()
           
 void recycle()
           
 void setDecodedURI(String uri)
           
 void setDefaultURIEncoding(Charset defaultURIEncoding)
           
 void setURI(String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestURIRef

public RequestURIRef()
Method Detail

init

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

init

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

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()

getURI

public String getURI(Charset encoding)

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()


Copyright © 2013 Oracle Corporation. All Rights Reserved.