org.springframework.extensions.webscripts.jsf
Class WebScriptJSFRequest

java.lang.Object
  extended by org.springframework.extensions.webscripts.WebScriptRequestImpl
      extended by org.springframework.extensions.webscripts.WebScriptRequestURLImpl
          extended by org.springframework.extensions.webscripts.jsf.WebScriptJSFRequest
All Implemented Interfaces:
WebScriptRequest

public class WebScriptJSFRequest
extends WebScriptRequestURLImpl

Implementation of a WebScript Request for the JSF environment.

Author:
Kevin Roast

Field Summary
 
Fields inherited from class org.springframework.extensions.webscripts.WebScriptRequestURLImpl
contextPath, pathInfo, queryArgs, queryArgsMulti, queryString, serviceMatch, servletPath
 
Fields inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl
logger
 
Constructor Summary
WebScriptJSFRequest(Runtime container, String[] scriptUrlParts, Match match)
          Construct
 
Method Summary
 String getAgent()
          Get User Agent TODO: Expand on known agents
 Content getContent()
          Gets the request body as content
 String getHeader(String name)
          Gets the value of the named header
 String[] getHeaderNames()
          Gets the names of all headers for this request
 String[] getHeaderValues(String name)
          Gets the (array) value of the named header Note: An array of one item is returned when a "single value" named header is requested
 String getServerPath()
          Get server portion of the request e.g.
 
Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestURLImpl
getContextPath, getParameter, getParameterNames, getParameterValues, getPathInfo, getQueryString, getServiceContextPath, getServiceMatch, getServicePath, getURL, splitURL, splitURL, toString
 
Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl
forceSuccessStatus, getContentType, getExtensionPath, getFormat, getFormatStyle, getJSONCallback, getRuntime, isGuest, parseContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebScriptJSFRequest

public WebScriptJSFRequest(Runtime container,
                           String[] scriptUrlParts,
                           Match match)
Construct

Parameters:
container -
scriptUrlParts -
match -
Method Detail

getServerPath

public String getServerPath()
Description copied from interface: WebScriptRequest
Get server portion of the request e.g. scheme://host:port

Returns:
server path

getAgent

public String getAgent()
Description copied from interface: WebScriptRequest
Get User Agent TODO: Expand on known agents

Returns:
MSIE / Firefox

getHeaderNames

public String[] getHeaderNames()
Description copied from interface: WebScriptRequest
Gets the names of all headers for this request

Returns:
the names (empty, if none)

getHeader

public String getHeader(String name)
Description copied from interface: WebScriptRequest
Gets the value of the named header

Parameters:
name - header name
Returns:
header value (or null, if header does not exist)

getHeaderValues

public String[] getHeaderValues(String name)
Description copied from interface: WebScriptRequest
Gets the (array) value of the named header Note: An array of one item is returned when a "single value" named header is requested

Parameters:
name - header name
Returns:
array of values (or null, if header does not exist)

getContent

public Content getContent()
Description copied from interface: WebScriptRequest
Gets the request body as content

Returns:
request content (or null, if none)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.