Reply To: Rewrite Rules when using with ADF/Webcenter

Splash Forums PrettyFaces Users Rewrite Rules when using with ADF/Webcenter Reply To: Rewrite Rules when using with ADF/Webcenter

#27032

Siddharth
Participant

Hi Lincoln ,
Thanks for replying.
Below is the code for PrettyFacesAdfProcessor that i’m using .

    public String processInbound(final HttpServletRequest request, final HttpServletResponse response, final RewriteRule rewrite, final String url) {
   
    return url;

    }

    public String processOutbound(final HttpServletRequest request, final HttpServletResponse response, final RewriteRule rewrite, final String url) {
        
    if (request.getParameterValues("_adf.ctrl-state") != null && !url.contains("_adf.ctrl-state")) {
       
    String newUrl = url + "?_adf.ctrl-state=" + request.getParameterValues("_adf.ctrl-state")[0];

    return newUrl;

    }

        
    return url;

    }

I’ll try to integrate rewrite with webcenter and will provide results on this thread . Thanks .

Regards,
Siddharth