public void setMembershipContentRule(MembershipContentRule[] mcr) { if (mcr == null) mcr = _EMPTY_CONTENT_RULES; _contentRules = mcr; // // make sure all MCRs are using this SG's EPR for outgoing messages // EndpointReference sgEPR = getResource().getEndpointReference(); for (int n = 0; n < _contentRules.length; ++n) _contentRules[n].setServiceGroupEPR(sgEPR); }
protected boolean isAdvertised(EndpointReference epr) { return getResource().getEndpointReference().equals(epr); } }
EndpointReference epr = resource.getEndpointReference(); String address = epr.getAddress().toString(); int slash = address.lastIndexOf('/');
fileNumbersByEPR.put(resource.getEndpointReference(), fileNumber);
public synchronized void destroy() throws ResourceNotDestroyedFault { if (getResource().getEndpointReference().getParameter( WsaConstants.DEFAULT_RESOURCE_ID_QNAME) == null) throw new ResourceNotDestroyedFault("default resource can not be destroyed."); try { // // all we're doing is making the shutdown task public... // getResource().shutdown(); } catch (SoapFault fault) { throw new ResourceNotDestroyedFault(fault); } } }
public Element toXML(Document doc) { if (doc == null) throw new NullPointerException(_MESSAGES.get("NullDocument")); Element root = XmlUtils.createElement(doc, WssgConstants.ENTRY_QNAME); EndpointReference myEPR = getResource().getEndpointReference(); XmlUtils.setElement(root, WssgConstants.SG_ENTRY_EPR_QNAME, myEPR); EndpointReference member = getMemberEPR(); XmlUtils.setElement(root, WssgConstants.MEMBER_SERVICE_EPR_QNAME, member); try { XmlUtils.setElement(root, WssgConstants.CONTENT_QNAME, getContent()); } catch (SoapFault error) { Object[] filler = { error.getMessage() }; getLog().fine(_MESSAGES.get("ContentCreationFailed", filler)); } return root; } }
message.setSubscriptionReference(getResource().getEndpointReference());
reporter.setName(WefConstants.REPORTER_COMP_QNAME); address = factory.createComponentAddress(advertiser.getEndpointReference()); reporter.setAddress(address);