public final boolean hasCapability(String capabilityURI) { return getCapability(capabilityURI) != null; }
/** * * @return The resource's EPR, in string form. * */ public String toString() { return getEndpointReference().toString(); } }
public final String getInitializationParameter(String name) { return (String)getInitializationParameters().get(name); }
public void initialize() throws SoapFault if (getLog() == null) throw new IllegalStateException(_MESSAGES.get("NoLogger")); if (getEnvironment() == null) throw new IllegalStateException(_MESSAGES.get("NoEnvironment")); if (getResourceManager() == null) throw new IllegalStateException(_MESSAGES.get("NoResourceManager")); if (getContextPath() == null) throw new IllegalStateException(_MESSAGES.get("NoContextPath")); if (getWsdlPath() == null) throw new IllegalStateException(_MESSAGES.get("NoWSDLPath")); if (getWsdlPortType() == null) throw new IllegalStateException(_MESSAGES.get("NoWSDLPortType")); initializeCapabilities(); Object[] filler = { getContextPath() }; String message = _MESSAGES.get("ResourceInitialized", filler); getLog().info(message);
throws SoapFault String contextPath = getContextPath(); Logger log = getLog(); Iterator i = getCapabilityURIs().iterator(); Capability next = getCapability(nextURI); next.initialize(); i = getCapabilityURIs().iterator(); Capability next = getCapability(nextURI); next.initializeCompleted();
if (hasBeenShutdown()) throw new SoapFault(_MESSAGES.get("ResourceAlreadyDestroyed")); if (!hasBeenInitialized()) throw new SoapFault(_MESSAGES.get("ResourceNotInitialized")); shutdownCapabilities(); ResourceManager manager = getResourceManager();
MessageHeaders wsa = getEnvironment().getAddressingContext(); String action = wsa.getAction(); Capability capability = getCapabilityForAction(action); Object[] filler = { getContextPath(), action }; SoapFault wsaFault = new SoapFault(_MESSAGES.get("ActionNotSupported", filler)); wsaFault.setCode(SoapConstants.SENDER_QNAME); error = cause; Logger log = getLog();
capability.setLog(getLog()); capability.setEnvironment(getEnvironment()); Object[] filler = { getContextPath(), uri }; throw new RuntimeException(_MESSAGES.get("DuplicateCapabilityURI", filler)); Object[] filler = { getContextPath(), action, duplicate.getCapabilityURI() }; throw new RuntimeException(_MESSAGES.get("DuplicateAction", filler));
throws SoapFault String contextPath = getContextPath(); Logger log = getLog(); Iterator i = getCapabilityURIs().iterator(); Capability next = getCapability(nextURI); next.prepareShutdown(); i = getCapabilityURIs().iterator(); Capability next = getCapability(nextURI); next.shutdown();