com.caucho.server.dispatch
Class InvocationDecoder

java.lang.Object
  extended by com.caucho.server.dispatch.InvocationDecoder

public class InvocationDecoder
extends java.lang.Object

Decodes invocation URI.


Constructor Summary
InvocationDecoder()
          Creates the invocation decoder.
 
Method Summary
 java.lang.String getAlternateSessionURLPrefix()
          Gets the session url prefix.
 java.lang.String getEncoding()
          Returns the character encoding.
 int getMaxURILength()
           
 java.lang.String getSessionCookie()
          Gets the session cookie
 java.lang.String getSessionURLPrefix()
          Gets the session url prefix.
 java.lang.String getSSLSessionCookie()
          Gets the SSL session cookie
 void normalizeURI(Invocation invocation, java.lang.String rawURI)
          Just normalize the URI.
 java.lang.String normalizeUri(java.lang.String uri)
          Normalize a uri to remove '///', '/./', 'foo/..', etc.
 java.lang.String normalizeUri(java.lang.String uri, boolean isWindows)
          Normalize a uri to remove '///', '/./', 'foo/..', etc.
 void setAlternateSessionURLPrefix(java.lang.String prefix)
          Sets the alternate session url prefix.
 void setEncoding(java.lang.String encoding)
          Sets the character encoding.
 void setMaxURILength(int maxURILength)
           
 void setSessionCookie(java.lang.String cookie)
          Sets the session cookie
 void setSessionURLPrefix(java.lang.String prefix)
          Sets the session url prefix.
 void setSSLSessionCookie(java.lang.String cookie)
          Sets the SSL session cookie
 void splitQuery(Invocation invocation, java.lang.String rawURI)
          Splits out the query string, and normalizes the URI, assuming nothing needs unescaping.
 void splitQueryAndUnescape(Invocation invocation, byte[] rawURI, int uriLength)
          Splits out the query string and unescape the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationDecoder

public InvocationDecoder()
Creates the invocation decoder.

Method Detail

getEncoding

public java.lang.String getEncoding()
Returns the character encoding.


setEncoding

public void setEncoding(java.lang.String encoding)
Sets the character encoding.


setSessionCookie

public void setSessionCookie(java.lang.String cookie)
Sets the session cookie


getSessionCookie

public java.lang.String getSessionCookie()
Gets the session cookie


setSSLSessionCookie

public void setSSLSessionCookie(java.lang.String cookie)
Sets the SSL session cookie


getSSLSessionCookie

public java.lang.String getSSLSessionCookie()
Gets the SSL session cookie


setSessionURLPrefix

public void setSessionURLPrefix(java.lang.String prefix)
Sets the session url prefix.


getSessionURLPrefix

public java.lang.String getSessionURLPrefix()
Gets the session url prefix.


setAlternateSessionURLPrefix

public void setAlternateSessionURLPrefix(java.lang.String prefix)
                                  throws ConfigException
Sets the alternate session url prefix.

Throws:
ConfigException

getAlternateSessionURLPrefix

public java.lang.String getAlternateSessionURLPrefix()
Gets the session url prefix.


getMaxURILength

public int getMaxURILength()

setMaxURILength

public void setMaxURILength(int maxURILength)

splitQueryAndUnescape

public void splitQueryAndUnescape(Invocation invocation,
                                  byte[] rawURI,
                                  int uriLength)
                           throws java.io.IOException
Splits out the query string and unescape the value.

Throws:
java.io.IOException

splitQuery

public void splitQuery(Invocation invocation,
                       java.lang.String rawURI)
                throws java.io.IOException
Splits out the query string, and normalizes the URI, assuming nothing needs unescaping.

Throws:
java.io.IOException

normalizeURI

public void normalizeURI(Invocation invocation,
                         java.lang.String rawURI)
                  throws java.io.IOException
Just normalize the URI.

Throws:
java.io.IOException

normalizeUri

public java.lang.String normalizeUri(java.lang.String uri)
                              throws java.io.IOException
Normalize a uri to remove '///', '/./', 'foo/..', etc.

Parameters:
uri - the raw uri to be normalized
Returns:
a normalized URI
Throws:
java.io.IOException

normalizeUri

public java.lang.String normalizeUri(java.lang.String uri,
                                     boolean isWindows)
                              throws java.io.IOException
Normalize a uri to remove '///', '/./', 'foo/..', etc.

Parameters:
uri - the raw uri to be normalized
Returns:
a normalized URI
Throws:
java.io.IOException