@Override public EndpointReference[] getEndpointReferences(AxisService service, String ip) { return new EndpointReference[] { new EndpointReference(MailConstants.TRANSPORT_PREFIX + emailAddress) }; }
public static void triggerMessageInfoHeaderRequiredFault( MessageContext messageContext, String missingHeaderName) throws AxisFault { AddressingFaultsHelper.triggerMessageAddressingRequiredFault( messageContext, missingHeaderName); }
public void setAcksToEndpointReference(EndpointReference acksToEndpointRef){ this.acksToEndpointRef = acksToEndpointRef; if(acksToEndpointRef != null){ acksToEPR = acksToEndpointRef.getAddress(); } }
public WSMPublisher(int capacity, boolean defaultAsync, String brokerEpr_, boolean isXmlEpr) throws IOException { super(capacity, defaultAsync); if (!isXmlEpr) { brokerEpr = new EndpointReference(brokerEpr_);// EndpointReferenceHelper.fro(brokerEpr_); } else { brokerEpr = EndpointReferenceHelper.fromString(brokerEpr_); } broker = new WseMsgBrokerClient(); broker.init(brokerEpr.getAddress()); }
/** * Populates an endpoint reference based on the <code>OMElement</code> that is * passed in. If the http://schemas.xmlsoap.org/ws/2004/08/addressing namespace * is in effect then any reference properties will be saved as reference parameters. * Regardless of the addressing namespace in effect, any elements present in the * <code>OMElement</code> that are not recognised are saved as extensibility elements. * * @param eprOMElement an element of endpoint reference type * @throws AxisFault if unable to locate an address element */ public static EndpointReference fromOM(OMElement eprOMElement) throws AxisFault { EndpointReference epr = new EndpointReference(""); fromOM(epr, eprOMElement); return epr; }
public static void triggerInvalidMessageInfoHeaderFault( MessageContext messageContext, String invalidHeader) throws AxisFault { AddressingFaultsHelper.triggerInvalidCardinalityFault(messageContext, invalidHeader); }
public EndpointReference getAcksToEndpointReference(){ if(acksToEndpointRef==null && acksToEPR!=null){ //this is for release to release compatability with serializaed data acksToEndpointRef = new EndpointReference(acksToEPR);; } return acksToEndpointRef; }
/** * Populates an endpoint reference based on the <code>OMElement</code> that is * passed in. If the http://schemas.xmlsoap.org/ws/2004/08/addressing namespace * is in effect then any reference properties will be saved as reference parameters. * Regardless of the addressing namespace in effect, any elements present in the * <code>OMElement</code> that are not recognised are saved as extensibility elements. * * @param eprOMElement an element of endpoint reference type * @throws AxisFault if unable to locate an address element */ public static EndpointReference fromOM(OMElement eprOMElement) throws AxisFault { EndpointReference epr = new EndpointReference(""); fromOM(epr, eprOMElement); return epr; }
public void setOfferedEndPointEPR(EndpointReference offeredEndPointEPR) { this.offeredEndPointEPR = offeredEndPointEPR; this.offeredEndPoint = offeredEndPointEPR.getAddress(); }
@Override public EndpointReference[] getEndpointReferences(AxisService service, String ip) { return new EndpointReference[] { new EndpointReference(MailConstants.TRANSPORT_PREFIX + emailAddress) }; }
public void setToEndpointReference(EndpointReference toEndpointRef){ this.toEndpointReference = toEndpointRef; toEPR = toEndpointReference.getAddress(); }
public EndpointReference getReplyToEndpointReference(){ if(replyToEndpointReference==null && replyToEPR!=null){ //this is for release to release compatability with serializaed data replyToEndpointReference = new EndpointReference(replyToEPR);; } return replyToEndpointReference; }
public void setReplyToEndpointReference(EndpointReference replyToEndpointRef){ this.replyToEndpointReference = replyToEndpointRef; replyToEPR = replyToEndpointRef.getAddress(); }
public EndpointReference getToEndpointReference(){ if(toEndpointReference==null && toEPR!=null){ //this is for release to release compatability with serializaed data toEndpointReference = new EndpointReference(toEPR);; } return toEndpointReference; }
public String getListenerUrl(){ return eventSinkUrl.getAddress()+"receive/"; }
@Override public EndpointReference[] getEndpointReferences(AxisService service, String ip) { return new EndpointReference[] { new EndpointReference(MailConstants.TRANSPORT_PREFIX + emailAddress) }; }
public static Subscription renewMessageboxSubscription(String brokerLocation, EndpointReference eprOfMessageBox, String SubscriptionID, String topic, String xpath, boolean subscribePermanatly) throws Exception { return new MessageBoxNotificationHandler(eprOfMessageBox.getAddress(), brokerLocation) .renewMessageboxSubscription(eprOfMessageBox, SubscriptionID, topic, xpath, subscribePermanatly); }
@Override public EndpointReference[] getEndpointReferences(AxisService service, String ip) { return new EndpointReference[] { new EndpointReference("vfs:" + fileURI) }; }
private String subscribeToBroker(String eventSink, String topic, String xpath, WseMsgBrokerClient wseClient, boolean subscribePermanatly) throws MsgBrokerClientException { String subId = null; wseClient.init(brokerURL); if (subscribePermanatly) { subId = wseClient.subscribe(new EndpointReference(eventSink), topic, xpath, -1); } else { subId = wseClient.subscribe(eventSink, topic, xpath); } return subId; }
/** * Returns all EPRs for a given Service name & IP * @param serviceName ServiceName * @param ip IP */ public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault { String domainName = serverCredentials.getDomainName() == null? serverCredentials.getDomainName() : serverCredentials.getServerUrl(); return new EndpointReference[]{new EndpointReference(XMPPConstants.XMPP_PREFIX + serverCredentials.getAccountName() +"@"+ domainName +"/services/" + serviceName)}; }