Examples of canHandle()


Examples of org.apache.jackrabbit.core.security.authentication.token.TokenBasedAuthentication.canHandle()

            }
        }

        if (user != null) {
            Authentication authentication = new SimpleCredentialsAuthentication(user);
            if (authentication.canHandle(creds)) {
                return authentication;
            }
        }
        // no valid user or authentication could not handle the given credentials
        return null;
View Full Code Here

Examples of org.apache.struts2.dispatcher.StaticContentLoader.canHandle()

        if ("".equals(resourcePath) && null != request.getPathInfo()) {
            resourcePath = request.getPathInfo();
        }

        StaticContentLoader staticResourceLoader = dispatcher.getContainer().getInstance(StaticContentLoader.class);
        if (staticResourceLoader.canHandle(resourcePath)) {
            staticResourceLoader.findStaticResource(resourcePath, request, response);
            // The framework did its job here
            return true;

        } else {
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.URIHandler.canHandle()

    {
      URIHandler[] data = uriHandlers.data();
      for (int i = 0; i < size; ++i)
      {
        URIHandler uriHandler = data[i];
        if (uriHandler.canHandle(uri))
        {
          return uriHandler;
        }
      }
    }
View Full Code Here

Examples of org.geoserver.kml.regionate.RegionatingStrategyFactory.canHandle()

        List<RegionatingStrategyFactory> factories = GeoServerExtensions
                .extensions(RegionatingStrategyFactory.class);
        Iterator<RegionatingStrategyFactory> it = factories.iterator();
        while (it.hasNext()) {
            RegionatingStrategyFactory factory = it.next();
            if (factory.canHandle(name)) {
                return factory.createStrategy();
            }
        }

        return null;
View Full Code Here

Examples of org.geotools.filter.expression.PropertyAccessor.canHandle()

        PropertyAccessor accessor = getLastPropertyAccessor();
        AtomicReference<Object> value = new AtomicReference<Object>();
        AtomicReference<Exception> e = new AtomicReference<Exception>();

        if (accessor == null || !accessor.canHandle(obj, attPath, target)
                || !tryAccessor(accessor, obj, target, value, e)) {
            boolean success = false;
            if( namespaceSupport != null && hints == null ){
                hints = new Hints(PropertyAccessorFactory.NAMESPACE_CONTEXT, namespaceSupport);
            }
View Full Code Here

Examples of org.geotools.xml.ParserDelegate.canHandle()

                ParserDelegate delegate = (ParserDelegate) adapter.getComponentInstance(context);
               
                //ParserDelegate delegate = (ParserDelegate) d.next();
                boolean canHandle = delegate instanceof ParserDelegate2 ?
                    ((ParserDelegate2)delegate).canHandle(qualifiedName, attributes, handler, parent)
                    : delegate.canHandle( qualifiedName );

                if (canHandle) {
                    //found one
                    handler = new DelegatingHandler( delegate, qualifiedName, parent );
View Full Code Here

Examples of org.jboss.aerogear.controller.router.Route.canHandle()

                route().from("/home").on(GET).to(SampleController.class).index();
            }
        }.build();
        Route route = routes.routeFor(new IllegalStateException());
        assertThat(route).isNotNull();
        assertThat(route.canHandle(new IllegalStateException())).isTrue();
        assertThat(route.canHandle(new Throwable())).isTrue();
        assertThat(route.getTargetClass()).isEqualTo(ErrorTarget.class);
    }

    @Test
View Full Code Here

Examples of org.locationtech.udig.catalog.ui.IConnectionErrorHandler.canHandle()

    public void process( IExtension extension, IConfigurationElement element ) throws Exception {

        try {
            IConnectionErrorHandler handler = (IConnectionErrorHandler) element
                    .createExecutableExtension("class"); //$NON-NLS-1$
            if (handler.canHandle(s, t)) {
                handlers.add(handler);
            }
        } catch (Throwable t) {
            CatalogUIPlugin.log(t.getLocalizedMessage(), t);
        }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.designtime.DataSourcePlugin.canHandle()

      return;
    }

    final DataSourcePlugin dataSourcePlugin = metadata.createEditor();
    final DataFactory storedFactory = dataFactory.derive();
    if (dataSourcePlugin.canHandle(dataFactory) == false)
    {
      return;
    }

    final DefaultDataFactoryChangeRecorder recorder = new DefaultDataFactoryChangeRecorder();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.designtime.DataSourcePlugin.canHandle()

      return;
    }

    final DataSourcePlugin dataSourcePlugin = metadata.createEditor();
    final DataFactory storedFactory = dataFactory.derive();
    if (dataSourcePlugin.canHandle(dataFactory))
    {
      final ReportDocumentContext activeContext = getActiveContext();
      final AbstractReportDefinition report = activeContext.getReportDefinition();
      final boolean editingActiveQuery = contains(report.getQuery(), dataFactory.getQueryNames());
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.