Package org.apache.hadoop.gateway.filter.rewrite.api

Examples of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteFilterPathDescriptor$Compiler


      String value = event.getData();
      if( !event.isWhiteSpace() ) {
        if( level.scopeConfig == null || level.scopeConfig.getSelectors().isEmpty() ) {
          value = filterText( extractQName( node ), value, null );
        } else {
          UrlRewriteFilterPathDescriptor path = pickFirstMatchingPath( level );
          if( path instanceof UrlRewriteFilterApplyDescriptor ) {
            String rule = ((UrlRewriteFilterApplyDescriptor)path).rule();
            value = filterText( extractQName( node ), value, rule );
          }
        }
View Full Code Here


    writer.close();
    stack.clear();
  }

  protected UrlRewriteFilterPathDescriptor pickFirstMatchingPath( Level level ) {
    UrlRewriteFilterPathDescriptor match = null;
    if( level.scopeConfig != null ) {
      for( UrlRewriteFilterPathDescriptor selector : level.scopeConfig.getSelectors() ) {
        try {
          XPathExpression path = (XPathExpression)selector.compiledPath( XPATH_COMPILER );
          Object node = path.evaluate( level.scopeNode, XPathConstants.NODE );
View Full Code Here

     
      Environment env = parser.compile();
     
      ASN1Compiler comp = new ASN1Compiler();*/
     
    Compiler compiler = new Compiler();
        Map environment = new HashMap();
               
//        environment.put( ParseStage.SRC_URI, "file:///home/krychu/workspace/OpenCDF/gtpprime-asn1cdr/src/main/resources/asn1/ldap.asn");
        //environment.put( ParseStage.SRC_URI, "file:///home/krychu/workspace/OpenCDF/gtpprime-asn1cdr/src/main/resources/asn1/32.298/ps.asn1");
        environment.put( ParseStage.SRC_URI, "file:///home/krychu/workspace/OpenCDF/gtpprime-asn1cdr/src/main/resources/asn1/3gpp_merged/huawei_ps.asn1");
        //environment.put( ParseStage.SRC_URI, "file:///home/krychu/workspace/OpenCDF/gtpprime-asn1cdr/src/main/resources/asn1/NBAP-25433-530.asn1");
        environment.put( CodeGeneratorStage.ROOT_PACKAGE, "org.apache.ldap.asn1" );
        environment.put( CodeGeneratorStage.DESTINATION_PATH, "./c/" );

        compiler.compile( environment );
   
     
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteFilterPathDescriptor$Compiler

Copyright © 2018 www.massapicom. 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.