Codota Logo
FilterHolder.setName
Code IndexAdd Codota to your IDE (free)

How to use
setName
method
in
org.jboss.test.faces.FilterHolder

Best Java code snippets using org.jboss.test.faces.FilterHolder.setName (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.github.albfernandez.test-jsf/jsf-test-stage

public FacesEnvironment withFilter(String name, Filter filter) {
  checkNotInitialized();
  filterContainer = new FilterHolder(facesServletContainer.getMapping(), filter);
  filterContainer.setName(name);
  return this;
}
origin: org.jboss.test-jsf/jsf-test-stage

public FacesEnvironment withFilter(String name, Filter filter) {
  checkNotInitialized();
  filterContainer = new FilterHolder(facesServletContainer.getMapping(), filter);
  filterContainer.setName(name);
  return this;
}
origin: org.jboss.test-jsf/jsf-test-stage

/**
 * This template method called from {@link #setUp()} to create {@link FacesServlet} instance.
 * The default implementation also tests presense of the "org.ajax4jsf.Filter" class.
 * If this class is avalable, these instance appended to the Faces Servlet call chain.
 * Default mapping to the FacesServlet instance is "*.jsf"
 */
protected void setupFacesServlet() {
  ServletHolder facesServletContainer = new ServletHolder("*.jsf", new FacesServlet());
  facesServletContainer.setName("Faces Servlet");
  facesServer.addServlet(facesServletContainer);
  try {
    // Check for an ajax4jsf filter.
    Class<? extends Filter> ajaxFilterClass = contextClassLoader
        .loadClass("org.ajax4jsf.Filter").asSubclass(Filter.class);
    Filter ajaxFilter = ajaxFilterClass.newInstance();
    
    FilterHolder filterHolder = new FilterHolder("*.jsf", ajaxFilter);
    filterHolder.setName("ajax4jsf");
    facesServer.addResource("/WEB-INF/web.xml",
      "org/jboss/test/faces/ajax-web.xml");
    facesServer.addFilter(filterHolder);
  } catch (ClassNotFoundException e) {
    // No Richfaces filter, uses servlet directly.
    facesServer.addResource("/WEB-INF/web.xml",
        "org/jboss/test/faces/web.xml");
  } catch (Exception e) {
    throw new TestException(e);
  }
}
origin: com.github.albfernandez.test-jsf/jsf-test-stage

/**
 * This template method called from {@link #setUp()} to create {@link FacesServlet} instance.
 * The default implementation also tests presense of the "org.ajax4jsf.Filter" class.
 * If this class is avalable, these instance appended to the Faces Servlet call chain.
 * Default mapping to the FacesServlet instance is "*.jsf"
 */
protected void setupFacesServlet() {
  ServletHolder facesServletContainer = new ServletHolder("*.jsf", new FacesServlet());
  facesServletContainer.setName("Faces Servlet");
  facesServer.addServlet(facesServletContainer);
  try {
    // Check for an ajax4jsf filter.
    Class<? extends Filter> ajaxFilterClass = contextClassLoader
        .loadClass("org.ajax4jsf.Filter").asSubclass(Filter.class);
    Filter ajaxFilter = ajaxFilterClass.newInstance();
    
    FilterHolder filterHolder = new FilterHolder("*.jsf", ajaxFilter);
    filterHolder.setName("ajax4jsf");
    facesServer.addResource("/WEB-INF/web.xml",
      "org/jboss/test/faces/ajax-web.xml");
    facesServer.addFilter(filterHolder);
  } catch (ClassNotFoundException e) {
    // No Richfaces filter, uses servlet directly.
    facesServer.addResource("/WEB-INF/web.xml",
        "org/jboss/test/faces/web.xml");
  } catch (Exception e) {
    throw new TestException(e);
  }
}
org.jboss.test.facesFilterHoldersetName

Popular methods of FilterHolder

  • getFilter
  • getInitParameters
  • getMapping
  • getName
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now