public ArjunaContextImple(BACoordinator currentCoordinator) { _context = null; initialiseContext(currentCoordinator); }
/** * Serialise the SOAP context into a DOM node. * @param element The element to contain the serialisation. * @return the element added. */ public Element serialiseToElement(final Element element) { final Element context = context() ; element.appendChild(context) ; return context ; }
public boolean equals (Object obj) { if (obj instanceof TxContextImple) { TxContextImple compare = (TxContextImple) obj; return compare.context().equals(_context); } else return false; }
private static W3CEndpointReference getRegistrationCoordinator(String registrationCoordinatorURI, ArjunaContextImple arjunaContext) { final String identifier = arjunaContext.getTransactionIdentifier(); return getRegistrationCoordinator(registrationCoordinatorURI, identifier); }
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; }
public boolean equals (Object obj) { if (obj instanceof TxContextImple) { TxContextImple compare = (TxContextImple) obj; return compare.context().equals(_context); } else return false; }
public ArjunaContextImple(BACoordinator currentCoordinator) { _context = null; initialiseContext(currentCoordinator); }
/** * Serialise the SOAP context into a DOM node. * @param element The element to contain the serialisation. * @return the element added. */ public Element serialiseToElement(final Element element) { final Element context = context() ; element.appendChild(context) ; return context ; }
private static W3CEndpointReference getRegistrationCoordinator(String registrationCoordinatorURI, ArjunaContextImple arjunaContext) { final String identifier = arjunaContext.getTransactionIdentifier(); return getRegistrationCoordinator(registrationCoordinatorURI, identifier); }
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; }
public boolean equals (Object obj) { if (obj instanceof TxContextImple) { TxContextImple compare = (TxContextImple) obj; return compare.context().equals(_context); } else return false; }
public ArjunaContextImple(BACoordinator currentCoordinator) { _context = null; initialiseContext(currentCoordinator); }
/** * Serialise the SOAP context into a DOM node. * @param element The element to contain the serialisation. * @return the element added. */ public Element serialiseToElement(final Element element) { final Element context = context() ; element.appendChild(context) ; return context ; }
private static W3CEndpointReference getRegistrationCoordinator(String registrationCoordinatorURI, ArjunaContextImple arjunaContext) { final String identifier = arjunaContext.getTransactionIdentifier(); return getRegistrationCoordinator(registrationCoordinatorURI, identifier); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }