Search in sources :

Example 11 with NativeEndpointReference

use of com.arjuna.webservices11.wsaddr.NativeEndpointReference in project narayana by jbosstm.

the class TxContextImple method isSecure.

public boolean isSecure() {
    if (valid()) {
        CoordinationContextType coordinationContextType = _context.getCoordinationContext();
        W3CEndpointReference epref = coordinationContextType.getRegistrationService();
        NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, epref);
        String address = nativeRef.getAddress();
        return address.startsWith("https");
    }
    return false;
}
Also used : W3CEndpointReference(javax.xml.ws.wsaddressing.W3CEndpointReference) NativeEndpointReference(com.arjuna.webservices11.wsaddr.NativeEndpointReference) CoordinationContextType(org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType)

Example 12 with NativeEndpointReference

use of com.arjuna.webservices11.wsaddr.NativeEndpointReference in project narayana by jbosstm.

the class TxContextImple method isSecure.

public boolean isSecure() {
    if (valid()) {
        CoordinationContextType coordinationContextType = _context.getCoordinationContext();
        W3CEndpointReference epref = coordinationContextType.getRegistrationService();
        NativeEndpointReference nativeRef = EndpointHelper.transform(NativeEndpointReference.class, epref);
        String address = nativeRef.getAddress();
        return address.startsWith("https");
    }
    return false;
}
Also used : W3CEndpointReference(javax.xml.ws.wsaddressing.W3CEndpointReference) NativeEndpointReference(com.arjuna.webservices11.wsaddr.NativeEndpointReference) CoordinationContextType(org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType)

Aggregations

NativeEndpointReference (com.arjuna.webservices11.wsaddr.NativeEndpointReference)12 W3CEndpointReference (javax.xml.ws.wsaddressing.W3CEndpointReference)2 CoordinationContextType (org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType)2