org.apache.axis2.jaxws.server.config
Class AddressingConfigurator

java.lang.Object
  extended by org.apache.axis2.jaxws.server.config.AddressingConfigurator
All Implemented Interfaces:
ServerConfigurator

public class AddressingConfigurator
extends Object
implements ServerConfigurator

This class will enable/disable WS-Addressing for a JAX-WS 2.1 web service endpoint, based on the configuration passed to it via an Addressing annotation and/or a SubmissionAddressing annotation from the endpoint implementation bean.

See Also:
Addressing, SubmissionAddressing

Constructor Summary
AddressingConfigurator()
           
 
Method Summary
 void configure(EndpointDescription endpointDescription)
          Perform server-side configuration for a WebServiceFeature.
static String mapResponseAttributeToAddressing(Responses responses)
          Given a value for the Addressing.responses annotation attribute, map it to the corresponding Addressing constant to be set on the AxisSservice
 boolean supports(String bindingId)
          Indicates whether the configurator supports the specified binding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressingConfigurator

public AddressingConfigurator()
Method Detail

configure

public void configure(EndpointDescription endpointDescription)
Description copied from interface: ServerConfigurator
Perform server-side configuration for a WebServiceFeature.

Specified by:
configure in interface ServerConfigurator

mapResponseAttributeToAddressing

public static String mapResponseAttributeToAddressing(Responses responses)
Given a value for the Addressing.responses annotation attribute, map it to the corresponding Addressing constant to be set on the AxisSservice

Parameters:
responses - Enum value from the Addressing.responses annotation attribute
Returns:
String from AddressingContstants corresponding to the responses value.

supports

public boolean supports(String bindingId)
Description copied from interface: ServerConfigurator
Indicates whether the configurator supports the specified binding.

Specified by:
supports in interface ServerConfigurator
Parameters:
bindingId - the binding id to test
Returns:
true if the configurator supports the binding id, false otherwise.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.