org.apache.myfaces.orchestra.requestParameterProvider
Class RequestParameterResponseWrapper

java.lang.Object
  extended by HttpServletResponseWrapper
      extended by org.apache.myfaces.orchestra.requestParameterProvider.RequestParameterResponseWrapper

public class RequestParameterResponseWrapper
extends HttpServletResponseWrapper

This wrapper intercepts encodeURL and pass it to the RequestParameterProviderManager which attaches the url parameters


Constructor Summary
RequestParameterResponseWrapper(HttpServletResponse httpServletResponse)
           
 
Method Summary
 java.lang.String encodeUrl(java.lang.String url)
          Deprecated.  
 java.lang.String encodeURL(java.lang.String url)
          Override the inherited behaviour to add to the url any query parameters that have been registered with the RequestParameterProviderManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestParameterResponseWrapper

public RequestParameterResponseWrapper(HttpServletResponse httpServletResponse)
Method Detail

encodeURL

public java.lang.String encodeURL(java.lang.String url)
Override the inherited behaviour to add to the url any query parameters that have been registered with the RequestParameterProviderManager.

Method ExternalContext.encodeActionURL will call this method. All JSF implementations should invoke that method in the NavigationHandler implementation (on redirect), the Form renderer and the commandLink renderer. This ensures that all the normal places that send urls back to the client browser will insert the appropriate query-params.

Note however that ExternalContext.redirect does *not* call this method. And neither does ViewHandler.getActionUrl(). Therefore custom code that uses redirect or emits "action urls" itself should call ExternalContext.encodeActionURL (which in turn invokes this method).


encodeUrl

public java.lang.String encodeUrl(java.lang.String url)
Deprecated. 

Override deprecated form of this method, in case users call it.

The inherited implementation of this method calls super.encodeUrl(url) directly, which would bypass our custom code.

Since:
1.1


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.