com.sdm.quasar.client.jsf.dialog.services
Interface ResponseParameterService

All Superinterfaces:
Service
All Known Implementing Classes:
BrowserWindowFeature

public interface ResponseParameterService
extends Service

This Service provides post parameters (getPostParameters()) and get parameters (getGetParameters() for the curent response. The get parametedr may be addad to an action url (buildActionURL(String), the post parameters may be addad as hidden fields to the page of the request o r provided aqs token.

Author:
Martin Haft

Method Summary
 java.lang.String buildActionURL(java.lang.String requestContextPath)
          Request to build the action url based upon the given path
 java.lang.String buildIdFromPostParameters()
          Builds a token out of the post parameters.
 GetParameters getGetParameters()
           
 PostParameters getPostParameters()
           
 void writePostParameters(UIComponent component, ResponseWriter writer)
          wites the post parameters as hidden fields to the page
 

Method Detail

getPostParameters

public PostParameters getPostParameters()
Returns:
The PostParameters for the response

getGetParameters

public GetParameters getGetParameters()
Returns:
the GetParameters for the response

buildActionURL

public java.lang.String buildActionURL(java.lang.String requestContextPath)
Request to build the action url based upon the given path

Parameters:
requestContextPath - the base path
Returns:
the build action url

writePostParameters

public void writePostParameters(UIComponent component,
                                ResponseWriter writer)
                         throws java.io.IOException
wites the post parameters as hidden fields to the page

Throws:
java.io.IOException

buildIdFromPostParameters

public java.lang.String buildIdFromPostParameters()
Builds a token out of the post parameters. This is used as fall back when the values of the hidden fields are not passed by every submit, e.g. when no JavaScript is valid

Returns:
the token