Java Code Examples for org.apache.cxf.phase.Phase#UNMARSHAL

The following examples show how to use org.apache.cxf.phase.Phase#UNMARSHAL . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public AuthPolicyValidatingInterceptor() {
    this(Phase.UNMARSHAL);
}
 
Example 2
/**
 *
 */
public ProtobufMessageInInterceptor() {
    super(Phase.UNMARSHAL);
}
 
Example 3
public AuthPolicyValidatingInterceptor() {
    this(Phase.UNMARSHAL);
}
 
Example 4
Source Project: cxf   File: JAASLoginInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public JAASLoginInterceptor() {
    this(Phase.UNMARSHAL);
}
 
Example 5
public BasicAuthInterceptor() {
    super(Phase.UNMARSHAL);
    // addAfter(BareInInterceptor.class.getName());
    // addAfter(RPCInInterceptor.class.getName());
    // addAfter(DocLiteralInInterceptor.class.getName());
}
 
Example 6
public GeofenceAuthenticationInterceptor()
{
    super(Phase.UNMARSHAL);
}
 
Example 7
public AuthenticationHandler()
{
    super(Phase.UNMARSHAL);
}
 
Example 8
Source Project: cxf   File: JAXRSInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public JAXRSInInterceptor() {
    super(Phase.UNMARSHAL);
}
 
Example 9
Source Project: cxf   File: DocLiteralInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public DocLiteralInInterceptor() {
    super(Phase.UNMARSHAL);
}
 
Example 10
public CorbaStreamFaultInInterceptor() {
    super(Phase.UNMARSHAL);
    addAfter(ClientFaultConverter.class.getName());
}
 
Example 11
Source Project: cxf   File: XMLFaultInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public XMLFaultInInterceptor() {
    this(Phase.UNMARSHAL);
}
 
Example 12
@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)
                    .bindingId(SoapBindingFactory.SOAP_12_BINDING)
                    .cxfInInterceptors(inInterceptor, inInterceptor2)
                    .cxfOutInterceptors(outInterceptor)
                    .enableMtom());
    c = ClientProxy.getClient(clientProxy);
    assertThat(((BindingProvider) clientProxy).getBinding().getBindingID(), equalTo("http://www.w3.org/2003/05/soap/bindings/HTTP/"));
    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));
}
 
Example 13
Source Project: cxf   File: RPCInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public RPCInInterceptor() {
    super(Phase.UNMARSHAL);
}
 
Example 14
Source Project: cxf   File: SoapHeaderInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public SoapHeaderInterceptor() {
    super(Phase.UNMARSHAL);
    addAfter(BareInInterceptor.class.getName());
    addAfter(RPCInInterceptor.class.getName());
    addAfter(DocLiteralInInterceptor.class.getName());
}
 
Example 15
Source Project: cxf   File: Soap12FaultInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public Soap12FaultInInterceptor() {
    super(Phase.UNMARSHAL);
    addBefore(ClientFaultConverter.class.getName());
}
 
Example 16
Source Project: cxf   File: Soap11FaultInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public Soap11FaultInInterceptor() {
    super(Phase.UNMARSHAL);
    addBefore(ClientFaultConverter.class.getName());
}
 
Example 17
Source Project: cxf   File: XmlSigInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public String getPhase() {
    return Phase.UNMARSHAL;
}
 
Example 18
public BasicAuthenticationInterceptor() {
    super(Phase.UNMARSHAL);
}
 
Example 19
public HttpAuthenticationFaultHandler() {
    super(Phase.UNMARSHAL);
    this.authenticationType = "Basic";
    this.realm = "CXF service";
}
 
Example 20
Source Project: cxf   File: JsonpInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public JsonpInInterceptor() {
    this(Phase.UNMARSHAL);
}