Examples of addFilter()


Examples of com.mockrunner.mock.web.MockFilterChain.addFilter()

        MockHttpServletResponse response = new MockHttpServletResponse();
        MockFilterChain chain = new MockFilterChain();

        TestFilter testFilter = new TestFilter();

        chain.addFilter(filter);
        chain.addFilter(testFilter);

        // check no thread DC before
        try {
            DataContext.getThreadDataContext();
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.Checker.addFilter()

        checker.setModuleClassLoader( Thread.currentThread().getContextClassLoader() );

        if ( filterSet != null )
        {
            checker.addFilter( filterSet );
        }
        Configuration configuration = getConfiguration( request );
        checker.configure( configuration );

        AuditListener listener = request.getListener();
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.FilterSet.addFilter()

            SuppressionsLoader.loadSuppressions(
                    "src/test/resources/com/puppycrawl/tools/checkstyle/suppressions_multiple.xml");
        final FilterSet fc2 = new FilterSet();
        SuppressElement se0 = new SuppressElement("file0");
        se0.setChecks("check0");
        fc2.addFilter(se0);
        SuppressElement se1 = new SuppressElement("file1");
        se1.setChecks("check1");
        se1.setLines("1,2-3");
        fc2.addFilter(se1);
        SuppressElement se2 = new SuppressElement("file2");
View Full Code Here

Examples of com.qq.weixin.sdk.message.filter.FilterChain.addFilter()

public class MessageHandlerLocation extends MessageHandlerHelper {

  @Override
  public Message handleSpecialMessage(Message message) {
    FilterChain filterChain = new FilterChain();
    filterChain.addFilter(new FilterDefaultResult());// add this,so the next line does not have to verify whether result is null or not
    return filterChain.doFilterChain(message);
  }

  @Override
  protected void parseSpecialMessage(Message message, Element root) {
View Full Code Here

Examples of com.salas.bb.discovery.filter.CompositeURLFilter.addFilter()

        if (eventNotifier != null) eventNotifier.setUserPreferences(userPreferences);

        // Setup URL filter
        CompositeURLFilter urlFilter = new CompositeURLFilter();
        urlFilter.addFilter(new ExtensionURLFilter(ResourceUtils.getString(ResourceID.NO_DISCOVERY_EXTENSIONS)));
        urlFilter.addFilter(new DynamicExtensionURLFilter(model.getUserPreferences(),
            UserPreferences.PROP_NO_DISCOVERY_EXTENSIONS));
        MDDiscoveryLogic.setURLFilter(urlFilter);

        featureManager.setServicePreferences(model.getServicePreferences());
View Full Code Here

Examples of com.sun.grizzly.DefaultProtocolChain.addFilter()

        DefaultProtocolChain protocolChain = new DefaultProtocolChain();

        if (serverHandler.protocol() == Controller.Protocol.TLS) {
            SSLReadFilter sslfilter = getSSLReadFilter(sipBindingCtx);

            protocolChain.addFilter(sslfilter);

            protocolChain.addFilter(new MessageProcessorFilter(this,
                    requestTimeOut, true, _bbPool, tlsAsyncWriteCallbackHandler));
        } else {
            protocolChain.setContinuousExecution(false);
View Full Code Here

Examples of com.sun.grizzly.ProtocolChain.addFilter()

                    }
                   
                   
                    pc = new DefaultProtocolChain();
                    ReadFilter readFilter = new JettyReadFilter(parser);
                    pc.addFilter(readFilter);
                   
                    HttpProtocolFilter httpProtocolFilter
                            = new HttpProtocolFilter();
                    httpProtocolFilter.setParser(parser);
                    httpProtocolFilter.setEndPoint(endPoint);
View Full Code Here

Examples of com.sun.grizzly.http.servlet.ServletAdapter.addFilter()

       jersey.setContextPath(e.getContext());

       Credentials c = Credentials.join(e.getCredentials(), cfg
               .getCredentials());
       if (!c.isEmpty()) {
           jersey.addFilter(new HTTPBasicAuth(c), e.getContext()
                   + "-basic-auth", null);
       }

       return jersey;
   }
View Full Code Here

Examples of com.sun.hotspot.igv.filter.FilterChain.addFilter()

                chain.removeFilter(f);
            }

            for (Filter f : s.getFilters()) {
                if (!chain.containsFilter(f)) {
                    chain.addFilter(f);
                }
            }

            chain.endAtomic();
            filterSettingsChangedEvent.fire();
View Full Code Here

Examples of com.sun.hotspot.igv.filter.FilterSetting.addFilter()

    private FilterSetting createFilterSetting(String name) {
        FilterSetting s = new FilterSetting(name);
        FilterChain chain = this.getFilterChain();
        for (Filter f : chain.getFilters()) {
            s.addFilter(f);
        }
        return s;
    }

    private void updateComboBoxSelection() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.