View Javadoc
1   /*
2    * Copyright 2006 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.springframework.ws.soap.server;
18  
19  import org.springframework.ws.server.EndpointMapping;
20  
21  /**
22   * SOAP-specific sub-interface of the <code>EndpointMapping</code>.  Adds associated actors (SOAP 1.1) or roles (SOAP
23   * 1.2). Used by the <code>SoapMessageDispatcher</code> to determine the MustUnderstand headers for particular
24   * endpoint.
25   * <p/>
26   * The main purpose for this interface is to add consitency between all SOAP-specific <code>EndpointMappings</code>. The
27   * <code>SoapMessageDispatcher</code> does not require all endpoint mappings to implement this interface.
28   *
29   * @author Arjen Poutsma
30   * @since 1.0.0
31   */
32  public interface SoapEndpointMapping extends EndpointMapping {
33  
34      /** Sets a single SOAP actor/actorOrRole to apply to all endpoints mapped by the delegate endpoint mapping. */
35      void setActorOrRole(String actorOrRole);
36  
37      /** Sets the array of SOAP actors/actorsOrRoles to apply to all endpoints mapped by the delegate endpoint mapping. */
38      void setActorsOrRoles(String[] actorsOrRoles);
39  
40      /** Indicates whether this the endpoint fulfills the SOAP 1.2 Ultimate Receiver role. */
41      void setUltimateReceiver(boolean ultimateReceiver);
42  }