|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServletResponseWrapper
org.apache.myfaces.orchestra.requestParameterProvider.RequestParameterResponseWrapper
public class RequestParameterResponseWrapper
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 |
---|
public RequestParameterResponseWrapper(HttpServletResponse httpServletResponse)
Method Detail |
---|
public java.lang.String encodeURL(java.lang.String url)
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).
public java.lang.String encodeUrl(java.lang.String url)
The inherited implementation of this method calls super.encodeUrl(url) directly, which would bypass our custom code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |