クラス XmlRootElementEndpointMapping

実装済みのインターフェース一覧:
org.springframework.beans.factory.Awareorg.springframework.context.ApplicationContextAwareorg.springframework.core.OrderedEndpointMapping

public class XmlRootElementEndpointMapping extends AbstractAnnotationMethodEndpointMapping<QNameSE>
JAXB2 XmlRootElement アノテーションを使用してメソッドをマップし、ペイロードのルート要素をリクエストする EndpointMapping インターフェースの実装。

通常、エンドポイントの形式は次のとおりです。


 @Endpoint
 public class MyEndpoint{
          public void doSomethingWithRequest(@RequestBody MyRootElement rootElement) {
                 ...
          }
 }
ここで、MyRootElement には @XmlRootElement のアノテーションが付けられています。

 @XmlRootElement(name = "myRoot", namespace = "http://springframework.org/spring-ws")
 public class MyRootElement {
         ...
 }
導入:
2.0