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

The following examples show how to use org.apache.cxf.phase.Phase#POST_LOGICAL . 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
Source File: MessageModeInInterceptor.java    From cxf with Apache License 2.0 5 votes vote down vote up
public MessageModeInInterceptor(Class<?> c, QName bName) {
    super(Phase.POST_LOGICAL);
    bindingName = bName;
    type = c;
    try {
        soapMsgClass = Class.forName("javax.xml.soap.SOAPMessage");
    } catch (Throwable t) {
        soapMsgClass = null;
    }
}
 
Example 2
Source File: DispatchOpTest.java    From cxf with Apache License 2.0 4 votes vote down vote up
BindingOperationVerifier() {
    super(Phase.POST_LOGICAL);
}
 
Example 3
Source File: SseInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
public SseInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 4
Source File: ReadHeadersInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
public CheckClosingTagsInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 5
Source File: SoapPreProtocolOutInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
public SoapPreProtocolOutInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 6
Source File: ColocOutInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
public ColocOutInterceptor(Bus b) {
    super(Phase.POST_LOGICAL);
    bus = b;
}
 
Example 7
Source File: ColocOutInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
public ColocOutInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 8
Source File: IgnorablePolicyInterceptorProvider.java    From cxf with Apache License 2.0 4 votes vote down vote up
IgnorableAssertionsInterceptor() {
    // somewhat irrelevant
    super(Phase.POST_LOGICAL);
}
 
Example 9
Source File: MTOMPolicyInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
public MTOMPolicyInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 10
Source File: SecureConversationInInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 11
Source File: DispatchTest.java    From cxf with Apache License 2.0 4 votes vote down vote up
BindingOperationVerifier() {
    super(Phase.POST_LOGICAL);
}
 
Example 12
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 4 votes vote down vote up
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 13
Source File: WrapperClassInInterceptor.java    From cxf with Apache License 2.0 4 votes vote down vote up
public WrapperClassInInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 14
Source File: MAPVerifier.java    From cxf with Apache License 2.0 4 votes vote down vote up
public MAPVerifier() {
    super(Phase.POST_LOGICAL);
}
 
Example 15
Source File: WSSCTest.java    From cxf with Apache License 2.0 4 votes vote down vote up
@Test
public void testSecureConversation() throws Exception {
    final wssec.wssc.IPingService port =
        svc.getPort(
            new QName("http://WSSec/wssc", test.prefix),
            wssec.wssc.IPingService.class
        );

    if (PORT2.equals(test.port) || STAX_PORT2.equals(test.port)) {
        ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                                    "https://localhost:" + test.port + "/" + test.prefix);
    } else {
        ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + test.port + "/" + test.prefix);
    }

    if (test.prefix.charAt(0) == '_') {
        //MS would like the _ versions to send a cancel
        ((BindingProvider)port).getRequestContext()
            .put(SecurityConstants.STS_TOKEN_DO_CANCEL, Boolean.TRUE);
    }

    if (test.streaming) {
        ((BindingProvider)port).getRequestContext().put(
            SecurityConstants.ENABLE_STREAMING_SECURITY, "true"
        );
        ((BindingProvider)port).getResponseContext().put(
            SecurityConstants.ENABLE_STREAMING_SECURITY, "true"
        );
    }
    if (test.clearAction) {
        AbstractPhaseInterceptor<Message> clearActionInterceptor
            = new AbstractPhaseInterceptor<Message>(Phase.POST_LOGICAL) {
                public void handleMessage(Message message) throws Fault {
                    STSClient client = STSUtils.getClient(message, "sct");
                    client.getOutInterceptors().add(this);
                    message.put(SecurityConstants.STS_CLIENT, client);
                    String s = (String)message.get(SoapBindingConstants.SOAP_ACTION);
                    if (s == null) {
                        s = SoapActionInInterceptor.getSoapAction(message);
                    }
                    if (s != null && s.contains("RST/SCT")) {
                        message.put(SoapBindingConstants.SOAP_ACTION, "");
                    }
                }
            };
        clearActionInterceptor.addBefore(SoapPreProtocolOutInterceptor.class.getName());
        ((Client)port).getOutInterceptors().add(clearActionInterceptor);
    }

    wssec.wssc.PingRequest params = new wssec.wssc.PingRequest();
    org.xmlsoap.ping.Ping ping = new org.xmlsoap.ping.Ping();
    ping.setOrigin("CXF");
    ping.setScenario("Scenario5");
    ping.setText("ping");
    params.setPing(ping);
    try {
        wssec.wssc.PingResponse output = port.ping(params);
        assertEquals(OUT, output.getPingResponse().getText());
    } catch (Exception ex) {
        throw new Exception("Error doing " + test.prefix, ex);
    }
    ((java.io.Closeable)port).close();
}
 
Example 16
Source File: ClientHeaderInterceptor.java    From peer-os with Apache License 2.0 4 votes vote down vote up
public ClientHeaderInterceptor( PeerManager peerManager )
{
    super( Phase.POST_LOGICAL );
    this.peerManager = peerManager;
}
 
Example 17
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 4 votes vote down vote up
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 18
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 4 votes vote down vote up
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 19
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 4 votes vote down vote up
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}