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

Examples of org.apache.hadoop.gateway.filter.rewrite.impl.UrlRewriteContextImpl


    } else if( !ruleName.isEmpty() ) {
      stepHolder = rules.get( ruleName );
      effectiveRuleName = ruleName;
    }
    if( stepHolder != null ) {
      UrlRewriteContext context = new UrlRewriteContextImpl( environment, resolver, functions, direction, inputUri );
      try {
        UrlRewriteStepStatus stepStatus = stepHolder.process( context );
        if( UrlRewriteStepStatus.SUCCESS == stepStatus ) {
          outputUri = context.getCurrentUrl();
          if( ruleName == null ) {
            LOG.rewroteUrlViaImplicitRule( inputUri, direction, effectiveRuleName, outputUri );
          } else {
            LOG.rewroteUrlViaExplicitRule( inputUri, direction, effectiveRuleName, outputUri );
          }
View Full Code Here


        match = outbound.match( outputUri );
        break;
    }
    if( match != null ) {
      UrlRewriteFunctionResolver function = new UrlRewriteFunctionResolver( functions, resolver );
      UrlRewriteContext context = new UrlRewriteContextImpl( environment, function, direction, inputUri );
      try {
        UrlRewriteStepProcessorHolder stepHolder = match.getValue();
        UrlRewriteStepStatus stepStatus = stepHolder.process( context );
        if( UrlRewriteStepStatus.SUCCESS == stepStatus ) {
          outputUri = context.getCurrentUrl();
        } else {
          outputUri = null;
        }
      } catch( Exception e ) {
        //TODO: I18N Log stack trace properly.
View Full Code Here

TOP

Related Classes of org.apache.hadoop.gateway.filter.rewrite.impl.UrlRewriteContextImpl

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.