com.bowstreet.webapp
Interface RequestData


public interface RequestData

Interface to expose request data such as Browser type, Servlet URL, etc.


Method Summary
 java.lang.String getBrowserType()
          Gets the Browser type for the current request.
 java.lang.String getBrowserVersion()
          Gets the Browser Version for this request
 java.lang.String getContextURL()
          Gets a String representation of the URL to the current App Context.
 java.lang.String getLanguage()
          Gets the Language specified in the accept-language HTTP header
 java.lang.String getLanguagePrefix()
          Gets the Language Prefix specified in the accept-language HTTP header
 java.lang.String getServerURL()
          Gets a String representation of the URL to the current Server.
 java.lang.String getServletURL()
          Gets a String representation of the URL to the current Servlet.
 

Method Detail

getBrowserType

java.lang.String getBrowserType()
Gets the Browser type for the current request. This can be MSIE or Netscape

Returns:
The String value of the Browser type.

getBrowserVersion

java.lang.String getBrowserVersion()
Gets the Browser Version for this request

Returns:
The String value of the Browser Version

getContextURL

java.lang.String getContextURL()
Gets a String representation of the URL to the current App Context. example: http://server:port/bowstreet where "bowstreet" is the app context where the Factory's installed.

Returns:
A String representation of the URL to the current Servlet

getLanguage

java.lang.String getLanguage()
Gets the Language specified in the accept-language HTTP header

Returns:
The String value of the accept-language HTTP Header or null

getLanguagePrefix

java.lang.String getLanguagePrefix()
Gets the Language Prefix specified in the accept-language HTTP header

Returns:
The String value of the accept-language HTTP Header or null

getServerURL

java.lang.String getServerURL()
Gets a String representation of the URL to the current Server. example: http://server:port
Note, there is no application context or servlet in this returned URL, use one of the above methods if you need that information in the return value.
The result value from this method is a candidate for prefixing the results of webAppAccess.getActionURL() which returns a relative (to this server root) URL.

Returns:
A String representation of the URL to the current Server

getServletURL

java.lang.String getServletURL()
Gets a String representation of the URL to the current Servlet. example: http://server:port/bowstreet/webengine where "bowstreet" is the application context and "webengine" is the servlet name.

Returns:
A String representation of the URL to the current Servlet


Copyright © 2009 IBM. All Rights Reserved.