org.apache.tapestry.request
Class DecodedRequest

java.lang.Object
  extended by org.apache.tapestry.request.DecodedRequest

public class DecodedRequest
extends Object

Contains properties of an HttpServletRequestthat have been extracted from the request (or otherwise determined). An instance of this is created by an IRequestDecoder. The decoder must set the serverName and requestURI properties, and should set the scheme and server port properties.

Since:
2.2
Author:
Howard Lewis Ship
See Also:
IRequestDecoder

Constructor Summary
DecodedRequest()
           
DecodedRequest(HttpServletRequest request)
          Initializes default values for the properties from the request provided.
 
Method Summary
 String getRequestURI()
          No default, a value must be set by the decoder.
 String getScheme()
          Default value is 'http'.
 String getServerName()
          No default, a value must be set by the decoder.
 int getServerPort()
          Default value is 80.
 void setRequestURI(String URI)
           
 void setScheme(String scheme)
           
 void setServerName(String serverName)
           
 void setServerPort(int serverPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecodedRequest

public DecodedRequest()

DecodedRequest

public DecodedRequest(HttpServletRequest request)
Initializes default values for the properties from the request provided.

Since:
4.0
Method Detail

getServerPort

public int getServerPort()
Default value is 80.


getScheme

public String getScheme()
Default value is 'http'.


getServerName

public String getServerName()
No default, a value must be set by the decoder.


getRequestURI

public String getRequestURI()
No default, a value must be set by the decoder.


setServerPort

public void setServerPort(int serverPort)

setScheme

public void setScheme(String scheme)

setServerName

public void setServerName(String serverName)

setRequestURI

public void setRequestURI(String URI)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.