Examples of PayloadRootAnnotationMethodEndpointMapping


Examples of org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping

   * Returns a {@link PayloadRootAnnotationMethodEndpointMapping} ordered at 0 for
   * mapping requests to annotated endpoints.
   */
  @Bean
  public PayloadRootAnnotationMethodEndpointMapping payloadRootAnnotationMethodEndpointMapping() {
    PayloadRootAnnotationMethodEndpointMapping endpointMapping =
        new PayloadRootAnnotationMethodEndpointMapping();
    endpointMapping.setOrder(0);
    endpointMapping.setInterceptors(getInterceptors());
    return endpointMapping;
  }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping

    this.applicationContext = applicationContext;
  }

  @Test
  public void interceptors() {
    PayloadRootAnnotationMethodEndpointMapping endpointMapping = this.applicationContext.getBean(
        PayloadRootAnnotationMethodEndpointMapping.class);
    assertEquals(0, endpointMapping.getOrder());

    EndpointInterceptor[] interceptors = endpointMapping.getInterceptors();
    assertEquals(1, interceptors.length);
    assertTrue(interceptors[0] instanceof MyInterceptor);
  }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping

    this.applicationContext = applicationContext;
  }

  @Test
  public void interceptors() {
    PayloadRootAnnotationMethodEndpointMapping endpointMapping = this.applicationContext.getBean(
        PayloadRootAnnotationMethodEndpointMapping.class);
    assertEquals(0, endpointMapping.getOrder());

    EndpointInterceptor[] interceptors = endpointMapping.getInterceptors();
    assertEquals(1, interceptors.length);
    assertTrue(interceptors[0] instanceof MyInterceptor);
  }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping

    this.applicationContext = applicationContext;
  }

  @Test
  public void payloadRootAnnotationMethodEndpointMapping() throws Exception {
    PayloadRootAnnotationMethodEndpointMapping endpointMapping = this.applicationContext.getBean(
        PayloadRootAnnotationMethodEndpointMapping.class);
    assertEquals(0, endpointMapping.getOrder());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.