Examples of FilterFactory


Examples of com.sun.jersey.server.impl.container.filter.FilterFactory

        injectableFactory.add(new PathParamInjectableProvider(mpep));
        injectableFactory.add(new QueryParamInjectableProvider(mpep));
        injectableFactory.add(new FormParamInjectableProvider(mpep));

        // Create filter factory
        filterFactory = new FilterFactory(providerServices);

        // Initiate resource method dispatchers
        dispatcherFactory = ResourceMethodDispatcherFactory.create(providerServices);

        dispatchingListener = new DispatchingListenerProxy();
View Full Code Here

Examples of com.wordnik.swagger.config.FilterFactory$

        swaggerConfig.setApiVersion(apiSource.getApiVersion());
        swaggerConfig.setSwaggerVersion(SwaggerSpec.version());
        List<ApiListingReference> apiListingReferences = new ArrayList<ApiListingReference>();

        if (apiSource.getSwaggerInternalFilter() != null) {
            FilterFactory$ filterFactory = FilterFactory$.MODULE$;
            try {
                LOG.info("Setting filter configuration: " + apiSource.getSwaggerInternalFilter());
                filterFactory.filter_$eq((SwaggerSpecFilter) Class.forName(apiSource.getSwaggerInternalFilter()).newInstance());
            } catch (Exception e) {
                throw new GenerateException("Cannot load: " + apiSource.getSwaggerInternalFilter(), e);
            }
        }
View Full Code Here

Examples of jifx.connection.configurator.filters.FilterFactory

  }

  public void startService() {
    if (configuration != null) {
      try {
        FilterFactory ff = new FilterFactory();

        // Creo todos los filtros
        IFilter filter = null;
        IFilter prevFilter = null;
        Node node = null;
        Element element = null;

        String[] names = this.getServiceName().getCanonicalName().split("=");
        channelName = names[names.length-1];
        if (channelName == null) {
          logger.error("| Nos se pudo obtener el nombre del canal!!!! "+names+"|");
          return;
        }
        if (jndi == null || jndi.trim().equals(""))
          jndi = "localhost:1099";
       
        logger.info(channelName+"| Iniciando connection...|");
        logger.info(channelName+"| Servicio jndi: "+jndi+"|");

        AttributeChangeNotificationFilter nf = new AttributeChangeNotificationFilter();
        nf.enableAttribute("ChannelState");

        incomingTopic = configuration.getAttribute("incomingTopic");
        outgoingTopic = configuration.getAttribute("outgoingTopic");
        idxLink = 0;

        NodeList nodes = configuration.getChildNodes();
        for (int i = 0; i < nodes.getLength(); i++) {
          node = nodes.item(i);
          if (node.getNodeType() == Node.ELEMENT_NODE) {
            element = (Element) node;
            filter = ff.createFilter(channelName, jndi, timeout, flushTime, incomingTopic, outgoingTopic, element);
            if (filter == null)
              return;
            this.addNotificationListener((NotificationListener) filter, nf, this);
            if (prevFilter != null)
              prevFilter.setFilterTM(filter);
View Full Code Here

Examples of org.apache.hadoop.hbase.rest.filter.FilterFactory

   * @return RowSetFilter with all input filters in an AND Statement
   * @throws org.apache.hadoop.hbase.rest.exception.HBaseRestException
   */
  protected RowFilterInterface unionFilters(String filters)
      throws HBaseRestException {
    FilterFactory f = RESTConstants.filterFactories.get("RowFilterSet");
    return f.getFilterFromJSON(filters);
  }
View Full Code Here

Examples of org.apache.maven.surefire.common.junit48.FilterFactory

        return jUnitCoreParameters.isParallelClasses() || jUnitCoreParameters.isParallelSuites();
    }

    private Filter createJUnit48Filter()
    {
        final FilterFactory filterFactory = new FilterFactory( testClassLoader );
        Filter groupFilter = filterFactory.createGroupFilter( providerParameters.getProviderProperties() );
        return isMethodFilterSpecified() ? filterFactory.and( groupFilter,
                                                              filterFactory.createMethodFilter( requestedTestMethod ) )
                        : groupFilter;
    }
View Full Code Here

Examples of org.geotools.filter.FilterFactory

        Query query;

        FeatureSource source;
        Feature feature;
        String fid;
        FilterFactory filterFactory = FilterFactoryFinder.createFilterFactory();
        FidFilter fidFilter;

        try {
            for (Iterator it = request.getQueries().iterator(); it.hasNext();) {
                query = (Query) it.next();

                // the feature type name used in the content disposition response will match
                // the first feature type
                if (featureTypeName == null) {
                    featureTypeName = query.getTypeName();
                }

                meta = catalog.getFeatureTypeInfo(query.getTypeName());
                namespace = meta.getDataStoreInfo().getNameSpace();
                source = meta.getFeatureSource();

                List attrs = meta.getAttributes();

                List propNames = query.getPropertyNames(); // REAL LIST: be careful here :)
                List attributeNames = meta.getAttributeNames();

                for (Iterator iter = propNames.iterator(); iter.hasNext();) {
                    String propName = (String) iter.next();

                    if (!attributeNames.contains(propName)) {
                        String mesg = "Requested property: " + propName + " is "
                            + "not available for " + query.getTypeName() + ".  "
                            + "The possible propertyName values are: " + attributeNames;
                        throw new WfsException(mesg);
                    }
                   
                   
                }

                List extraGeometries = new ArrayList();
                List properties = new ArrayList();
                if (propNames.size() != 0) {
                    Iterator ii = attrs.iterator();
                   

                    while (ii.hasNext()) {
                        AttributeTypeInfo ati = (AttributeTypeInfo) ii.next();

                        //String attName = (String) ii.next();
                        LOGGER.finer("checking to see if " + propNames + " contains" + ati);

                        if (((ati.getMinOccurs() > 0) && (ati.getMaxOccurs() != 0))
                                || propNames.contains(ati.getName())) {
                            properties.add(ati.getName());
                        }
                       
                        //if(wfs.isFeatureBounding() && meta.getFeatureType().getAttributeType(ati.getName()) instanceof GeometryAttributeType
                        //        && !properties.contains(ati.getName())) {
                        //    properties.add(ati.getName());
                        //    extraGeometries.add(ati.getName());
                        //}
                        if(meta.getFeatureType().getAttributeType(ati.getName()) instanceof GeometryAttributeType
                                && !properties.contains(ati.getName())) {
                            properties.add(ati.getName());
                            extraGeometries.add(ati.getName());
                        }
                    }

                    query.setPropertyNames(properties);
                }
               
                // Add range to filter
                AttributeExpression geomAttb = filterFactory.createAttributeExpression(meta.getFeatureType(), meta.getFeatureType().getDefaultGeometry().getName());
                LiteralExpression pointExpr = filterFactory.createLiteralExpression(request.getPoint());
                DWithin dWithin = filterFactory.dwithin(geomAttb, pointExpr, request.getMaxRange(), request.getUnits());
                if (query.getFilter() == null) {
                    query.addFilter((Filter)dWithin);
                   
                } else {
                    And andFilter = filterFactory.and(Arrays.asList(new Filter[] { (Filter)dWithin, query.getFilter() }));
                    query.addFilter((Filter)andFilter);
                }
               
                LOGGER.fine("Query is " + query + "\n To gt2: " + query.toDataQuery(Integer.MAX_VALUE));
View Full Code Here

Examples of org.jboss.messaging.core.FilterFactory

         clazz = Class.forName(clusterRouterFactory);
         ClusterRouterFactory rf = (ClusterRouterFactory)clazz.newInstance();

         ConditionFactory cf = new JMSConditionFactory();
                 
         FilterFactory ff = new SelectorFactory();
         FailoverMapper mapper = new DefaultFailoverMapper();

         JChannelFactory jChannelFactory = null;

         if (channelFactoryName != null)
View Full Code Here

Examples of org.jboss.messaging.core.FilterFactory

        
         TransactionRepository tr = serverPeer.getTxRepository();
        
         int nodeId = serverPeer.getServerPeerID();
        
         FilterFactory ff = new SelectorFactory();
        
         ConditionFactory cf = new JMSConditionFactory();
              
         postOffice = new DefaultPostOffice(ds, tm, sqlProperties,
                                         createTablesOnStartup,
View Full Code Here

Examples of org.jboss.messaging.core.contract.FilterFactory

        
         ClusterNotifier clusterNotifier = serverPeer.getClusterNotifier();

         ConditionFactory cf = new JMSConditionFactory();
                 
         FilterFactory ff = new SelectorFactory();
        
         if (clustered)
         {       
            ChannelFactory jChannelFactory = null;
View Full Code Here

Examples of org.jboss.messaging.core.contract.FilterFactory

                                                      MessageStore ms,                                              
                                                      TransactionRepository tr,
                                                      PersistenceManager pm)
      throws Exception
   {
      FilterFactory ff = new SimpleFilterFactory();
      ConditionFactory cf = new SimpleConditionFactory();
      IDManager idm = new IDManager("channel_id", 10, pm);
      idm.start();
      ClusterNotifier cn = new DefaultClusterNotifier();
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.