當前位置: 首頁>>代碼示例>>Java>>正文


Java Phase.UNMARSHAL屬性代碼示例

本文整理匯總了Java中org.apache.cxf.phase.Phase.UNMARSHAL屬性的典型用法代碼示例。如果您正苦於以下問題:Java Phase.UNMARSHAL屬性的具體用法?Java Phase.UNMARSHAL怎麽用?Java Phase.UNMARSHAL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.apache.cxf.phase.Phase的用法示例。


在下文中一共展示了Phase.UNMARSHAL屬性的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: publishEndpointWithCxfInterceptors

@Test
public void publishEndpointWithCxfInterceptors() throws Exception {

    TestInterceptor inInterceptor = new TestInterceptor(Phase.UNMARSHAL);
    TestInterceptor inInterceptor2 = new TestInterceptor(Phase.PRE_INVOKE);
    TestInterceptor outInterceptor = new TestInterceptor(Phase.MARSHAL);

    jaxwsEnvironment.publishEndpoint(
            new EndpointBuilder("local://path", service)
                    .cxfInInterceptors(inInterceptor, inInterceptor2)
                    .cxfOutInterceptors(outInterceptor));

    verify(mockInvokerBuilder).create(any(), any(Invoker.class));

    Node soapResponse = testutils.invoke("local://path",
            LocalTransportFactory.TRANSPORT_ID, soapRequest.getBytes());

    verify(mockInvoker).invoke(any(Exchange.class), any());
    assertThat(inInterceptor.getInvocationCount(), equalTo(1));
    assertThat(inInterceptor2.getInvocationCount(), equalTo(1));
    assertThat(outInterceptor.getInvocationCount(), equalTo(1));

    testutils.assertValid("/soap:Envelope/soap:Body/a:fooResponse", soapResponse);

    soapResponse = testutils.invoke("local://path",
            LocalTransportFactory.TRANSPORT_ID, soapRequest.getBytes());

    verify(mockInvoker, times(2)).invoke(any(Exchange.class), any());
    assertThat(inInterceptor.getInvocationCount(), equalTo(2));
    assertThat(inInterceptor2.getInvocationCount(), equalTo(2));
    assertThat(outInterceptor.getInvocationCount(), equalTo(2));

    testutils.assertValid("/soap:Envelope/soap:Body/a:fooResponse", soapResponse);
}
 
開發者ID:roskart,項目名稱:dropwizard-jaxws,代碼行數:34,代碼來源:JAXWSEnvironmentTest.java

示例2: ConfigureDocLitWrapperInterceptor

public ConfigureDocLitWrapperInterceptor(boolean unwrapParameterFlag) {
    super(Phase.UNMARSHAL);        
    addBefore("org.apache.cxf.interceptor.DocLiteralInInterceptor");
    addBefore("org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor");
    this.unwrapParameterFlag = unwrapParameterFlag;
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:6,代碼來源:ConfigureDocLitWrapperInterceptor.java

示例3: DataInInterceptor

public DataInInterceptor() {
    super(Phase.UNMARSHAL);
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:3,代碼來源:DataInInterceptor.java

示例4: AbstractServerIheTestcaseInInterceptor

protected AbstractServerIheTestcaseInInterceptor(Class<? extends W> requestImplClass, QName requestQName, String resultPropName, Class<V> resultClass,
    Class<? extends V> resultImplClass, Class<? extends U> submissionImplClass, String wsaAction) {
    this(Phase.UNMARSHAL, requestImplClass, requestQName, resultPropName, resultClass, resultImplClass, submissionImplClass, wsaAction);
}
 
開發者ID:esacinc,項目名稱:sdcct,代碼行數:4,代碼來源:AbstractServerIheTestcaseInInterceptor.java

示例5: DocLiteralInInterceptor

public DocLiteralInInterceptor() {
    super(Phase.UNMARSHAL);
    addAfter(URIMappingInterceptor.class.getName());
    addBefore(WrappedInInterceptor.class.getName());
}
 
開發者ID:mprins,項目名稱:muleebmsadapter,代碼行數:5,代碼來源:DocLiteralInInterceptor.java

示例6: BasicAuthInterceptor

public BasicAuthInterceptor() {
    super(Phase.UNMARSHAL);
    // addAfter(BareInInterceptor.class.getName());
    // addAfter(RPCInInterceptor.class.getName());
    // addAfter(DocLiteralInInterceptor.class.getName());
}
 
開發者ID:geoserver,項目名稱:geofence,代碼行數:6,代碼來源:BasicAuthInterceptor.java

示例7: GeofenceAuthenticationInterceptor

public GeofenceAuthenticationInterceptor()
{
    super(Phase.UNMARSHAL);
}
 
開發者ID:geoserver,項目名稱:geofence,代碼行數:4,代碼來源:GeofenceAuthenticationInterceptor.java

示例8: AuthenticationHandler

public AuthenticationHandler()
{
    super(Phase.UNMARSHAL);
}
 
開發者ID:geoserver,項目名稱:geofence,代碼行數:4,代碼來源:AuthenticationHandler.java

示例9: BasicAuthenticationInterceptor

public BasicAuthenticationInterceptor() {
    super(Phase.UNMARSHAL);
}
 
開發者ID:roskart,項目名稱:dropwizard-jaxws,代碼行數:3,代碼來源:BasicAuthenticationInterceptor.java

示例10: getClient

@Test
public void getClient() {

    String address = "http://address";
    Handler handler = mock(Handler.class);

    // simple
    DummyInterface clientProxy = jaxwsEnvironment.getClient(
            new ClientBuilder<>(DummyInterface.class, address)
    );
    assertThat(clientProxy, is(instanceOf(Proxy.class)));

    Client c = ClientProxy.getClient(clientProxy);
    assertThat(c.getEndpoint().getEndpointInfo().getAddress(), equalTo(address));
    assertThat(c.getEndpoint().getService().get("endpoint.class").equals(DummyInterface.class), equalTo(true));
    assertThat(((BindingProvider)clientProxy).getBinding() .getHandlerChain().size(), equalTo(0));

    HTTPClientPolicy httpclient = ((HTTPConduit)c.getConduit()).getClient();
    assertThat(httpclient.getConnectionTimeout(), equalTo(500L));
    assertThat(httpclient.getReceiveTimeout(), equalTo(2000L));

    // with timeouts, handlers, interceptors, properties and MTOM

    TestInterceptor inInterceptor = new TestInterceptor(Phase.UNMARSHAL);
    TestInterceptor inInterceptor2 = new TestInterceptor(Phase.PRE_INVOKE);
    TestInterceptor outInterceptor = new TestInterceptor(Phase.MARSHAL);

    clientProxy = jaxwsEnvironment.getClient(
            new ClientBuilder<>(DummyInterface.class, address)
                    .connectTimeout(123)
                    .receiveTimeout(456)
                    .handlers(handler)
                    .cxfInInterceptors(inInterceptor, inInterceptor2)
                    .cxfOutInterceptors(outInterceptor)
                    .enableMtom());
    c = ClientProxy.getClient(clientProxy);
    assertThat(c.getEndpoint().getEndpointInfo().getAddress(), equalTo(address));
    assertThat(c.getEndpoint().getService().get("endpoint.class").equals(DummyInterface.class), equalTo(true));

    httpclient = ((HTTPConduit)c.getConduit()).getClient();
    assertThat(httpclient.getConnectionTimeout(), equalTo(123L));
    assertThat(httpclient.getReceiveTimeout(), equalTo(456L));

    assertThat(((BindingProvider)clientProxy).getBinding().getHandlerChain(), contains(handler));

    BindingProvider bp = (BindingProvider)clientProxy;
    SOAPBinding binding = (SOAPBinding)bp.getBinding();
    assertThat(binding.isMTOMEnabled(), equalTo(true));
}
 
開發者ID:roskart,項目名稱:dropwizard-jaxws,代碼行數:49,代碼來源:JAXWSEnvironmentTest.java

示例11: ProtobufMessageInInterceptor

/**
 *
 */
public ProtobufMessageInInterceptor() {
    super(Phase.UNMARSHAL);
}
 
開發者ID:ow2-chameleon,項目名稱:fuchsia,代碼行數:6,代碼來源:ProtobufMessageInInterceptor.java


注:本文中的org.apache.cxf.phase.Phase.UNMARSHAL屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。