~ubuntu-branches/ubuntu/raring/eucalyptus/raring

« back to all changes in this revision

Viewing changes to clc/modules/wsstack/src/main/java/com/eucalyptus/ws/server/EucalyptusSoapPipeline.java

  • Committer: Package Import Robot
  • Author(s): Brian Thomason
  • Date: 2011-11-29 13:17:52 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 185.
  • Revision ID: package-import@ubuntu.com-20111129131752-rq31al3ntutv2vvl
Tags: upstream-3.0.999beta1
Import upstream version 3.0.999beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
*    SOFTWARE, AND IF ANY SUCH MATERIAL IS DISCOVERED THE PARTY DISCOVERING
54
54
*    IT MAY INFORM DR. RICH WOLSKI AT THE UNIVERSITY OF CALIFORNIA, SANTA
55
55
*    BARBARA WHO WILL THEN ASCERTAIN THE MOST APPROPRIATE REMEDY, WHICH IN
56
 
*    THE REGENTS’ DISCRETION MAY INCLUDE, WITHOUT LIMITATION, REPLACEMENT
 
56
*    THE REGENTS' DISCRETION MAY INCLUDE, WITHOUT LIMITATION, REPLACEMENT
57
57
*    OF THE CODE SO IDENTIFIED, LICENSING OF THE CODE SO IDENTIFIED, OR
58
58
*    WITHDRAWAL OF THE CODE CAPABILITY TO THE EXTENT NEEDED TO COMPLY WITH
59
59
*    ANY SUCH LICENSES OR RIGHTS.
63
63
 */
64
64
package com.eucalyptus.ws.server;
65
65
 
66
 
import java.util.List;
 
66
import org.jboss.netty.channel.ChannelPipeline;
67
67
import org.jboss.netty.handler.codec.http.HttpRequest;
68
 
import com.eucalyptus.ws.stages.BindingStage;
 
68
import com.eucalyptus.binding.BindingManager;
 
69
import com.eucalyptus.component.ComponentId.ComponentPart;
 
70
import com.eucalyptus.component.id.Eucalyptus;
 
71
import com.eucalyptus.ws.handlers.BindingHandler;
69
72
import com.eucalyptus.ws.stages.SoapUserAuthenticationStage;
70
73
import com.eucalyptus.ws.stages.UnrollableStage;
71
74
 
 
75
@ComponentPart( Eucalyptus.class )
72
76
public class EucalyptusSoapPipeline extends FilteredPipeline {
 
77
  private static final String DEFAULT_EC2_SOAP_NAMESPACE = "http://ec2.amazonaws.com/doc/2011-02-28/";//GRZE:TODO: @Configurable
 
78
  private final UnrollableStage auth = new SoapUserAuthenticationStage( );
73
79
 
74
80
  @Override
75
81
  public boolean checkAccepts( final HttpRequest message ) {
77
83
  }
78
84
 
79
85
  @Override
80
 
  public String getPipelineName( ) {
 
86
  public String getName( ) {
81
87
    return "eucalyptus-soap";
82
88
  }
83
89
 
84
90
  @Override
85
 
  protected void addStages( List<UnrollableStage> stages ) {
86
 
    stages.add( new SoapUserAuthenticationStage( ) );
87
 
    stages.add( new BindingStage( ) );
 
91
  public ChannelPipeline addHandlers( ChannelPipeline pipeline ) {
 
92
    auth.unrollStage( pipeline );
 
93
    pipeline.addLast( "binding", new BindingHandler( BindingManager.getBinding( DEFAULT_EC2_SOAP_NAMESPACE ) ) );
 
94
    return pipeline;
88
95
  }
89
 
 
90
96
}