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 . 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
Source Project: cxf   File: MessageModeInInterceptor.java    License: 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
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 3
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 4
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 5
public SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 6
Source Project: peer-os   File: ClientHeaderInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public ClientHeaderInterceptor( PeerManager peerManager )
{
    super( Phase.POST_LOGICAL );
    this.peerManager = peerManager;
}
 
Example 7
Source Project: cxf   File: WSSCTest.java    License: 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 8
Source Project: cxf   File: MAPVerifier.java    License: Apache License 2.0 4 votes vote down vote up
public MAPVerifier() {
    super(Phase.POST_LOGICAL);
}
 
Example 9
Source Project: cxf   File: WrapperClassInInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public WrapperClassInInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 10
Source Project: cxf   File: DispatchOpTest.java    License: Apache License 2.0 4 votes vote down vote up
BindingOperationVerifier() {
    super(Phase.POST_LOGICAL);
}
 
Example 11
Source Project: cxf   File: DispatchTest.java    License: Apache License 2.0 4 votes vote down vote up
BindingOperationVerifier() {
    super(Phase.POST_LOGICAL);
}
 
Example 12
SecureConversationCancelInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 13
Source Project: cxf   File: MTOMPolicyInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public MTOMPolicyInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 14
IgnorableAssertionsInterceptor() {
    // somewhat irrelevant
    super(Phase.POST_LOGICAL);
}
 
Example 15
Source Project: cxf   File: ColocOutInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public ColocOutInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 16
Source Project: cxf   File: ColocOutInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public ColocOutInterceptor(Bus b) {
    super(Phase.POST_LOGICAL);
    bus = b;
}
 
Example 17
public SoapPreProtocolOutInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 18
Source Project: cxf   File: ReadHeadersInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public CheckClosingTagsInterceptor() {
    super(Phase.POST_LOGICAL);
}
 
Example 19
Source Project: cxf   File: SseInterceptor.java    License: Apache License 2.0 4 votes vote down vote up
public SseInterceptor() {
    super(Phase.POST_LOGICAL);
}