congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PrettyFacesWrappedResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
PrettyFacesWrappedResponse
in
com.ocpsoft.pretty.faces.servlet

Best Java code snippets using com.ocpsoft.pretty.faces.servlet.PrettyFacesWrappedResponse (Showing top 15 results out of 315)

origin: ocpsoft/prettyfaces

@Override
public String encodeURL(final String url)
{
 String result = rewritePrettyMappings(url);
 result = rewrite(result);
 return super.encodeURL(result);
}
origin: ocpsoft/prettyfaces

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

HttpServletResponse response = new PrettyFacesWrappedResponse(request.getContextPath(), request,
     (HttpServletResponse) resp, getConfig());
req.setAttribute(PrettyContext.CONFIG_KEY, getConfig());
origin: ocpsoft/prettyfaces

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

HttpServletResponse response = new PrettyFacesWrappedResponse(request.getContextPath(), request,
     (HttpServletResponse) resp, getConfig());
req.setAttribute(PrettyContext.CONFIG_KEY, getConfig());
origin: com.ocpsoft/prettyfaces-jsf2

@Override
public String encodeURL(final String url)
{
 String result = rewritePrettyMappings(url);
 result = rewrite(result);
 return super.encodeURL(result);
}
origin: com.ocpsoft/prettyfaces-jsf2

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

HttpServletResponse response = new PrettyFacesWrappedResponse(request.getContextPath(), request,
     (HttpServletResponse) resp, getConfig());
req.setAttribute(PrettyContext.CONFIG_KEY, getConfig());
origin: ocpsoft/rewrite

@Override
public String encodeURL(final String url)
{
 String result = rewritePrettyMappings(url);
 result = rewrite(result);
 return super.encodeURL(result);
}
origin: ocpsoft/rewrite

private String rewrite(final String url)
{
 String result = "";
 if (url != null)
 {
   String strippedUrl = stripContextPath(url);
   if (!strippedUrl.equals(url))
   {
    result = contextPath;
   }
   try
   {
    for (RewriteRule c : prettyConfig.getGlobalRewriteRules())
    {
      strippedUrl = rewriteEngine.processOutbound(request, this, c, strippedUrl);
    }
    result += strippedUrl;
   }
   catch (Exception e)
   {
    throw new PrettyException("Error occurred during canonicalization of request <[" + url + "]>", e);
   }
 }
 return result;
}
origin: ocpsoft/prettyfaces

@Override
public String encodeURL(final String url)
{
 String result = rewritePrettyMappings(url);
 result = rewrite(result);
 return super.encodeURL(result);
}
origin: com.ocpsoft/prettyfaces-jsf2

String strippedUrl = stripContextPath(url);
origin: ocpsoft/rewrite

String strippedUrl = stripContextPath(url);
origin: ocpsoft/prettyfaces

String strippedUrl = stripContextPath(url);
origin: ocpsoft/prettyfaces

String strippedUrl = stripContextPath(url);
com.ocpsoft.pretty.faces.servletPrettyFacesWrappedResponse

Most used methods

  • rewrite
  • rewritePrettyMappings
  • stripContextPath
    If the given URL is prefixed with this request's context-path, return the URI without the context pa
  • <init>

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Reference (javax.naming)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now