public static void removeSessionManager(WSEndpoint endpoint){ synchronized (LOCK) { try { LOGGER.entering(); Object o = SESSION_MANAGERS.remove(endpoint); LOGGER.config(String.format("removeSessionManager(%s): %s", endpoint, o)); SessionManager sessionManager = (SessionManager) o; if (sessionManager != null && sessionManager.isRegisteredAtMOM()) { listener.unregisterFromMOM(sessionManager, endpoint); } } finally { LOGGER.exiting(); } } }
synchronized (LOCK) { try { LOGGER.entering(); SessionManager sm = SESSION_MANAGERS.get(endpoint); if (sm == null) {
/** * Return ManagedService assertion if there is one associated with the endpoint. * * @param endpoint The endpoint. Must not be null. * @return The policy assertion if found. Null otherwise. * @throws WebServiceException If computing the effective policy of the endpoint failed. */ public static ManagedServiceAssertion getAssertion(WSEndpoint endpoint) throws WebServiceException { LOGGER.entering(endpoint); // getPolicyMap is deprecated because it is only supposed to be used by Metro code // and not by other clients. @SuppressWarnings("deprecation") final PolicyMap policyMap = endpoint.getPolicyMap(); final ManagedServiceAssertion assertion = ManagementAssertion.getAssertion(MANAGED_SERVICE_QNAME, policyMap, endpoint.getServiceName(), endpoint.getPortName(), ManagedServiceAssertion.class); LOGGER.exiting(assertion); return assertion; }
/** * This method contains main task loop. It should not be called directly from outside. */ public void run() { LOGGER.entering(); if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer(String.format("Starting delayed execution of [ %s ]", task.getName())); } try { task.run(DelayedTaskManager.this); } catch (Exception ex) { LOGGER.warning(String.format("An exception occured during execution of [ %s ]", task.getName()), ex); } finally { if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer(String.format("Delayed execution of [ %s ] finished", task.getName())); } LOGGER.exiting(); } } }
/** * Return ManagedService assertion if there is one associated with the endpoint. * * @param endpoint The endpoint. Must not be null. * @return The policy assertion if found. Null otherwise. * @throws WebServiceException If computing the effective policy of the endpoint failed. */ public static ManagedServiceAssertion getAssertion(WSEndpoint endpoint) throws WebServiceException { LOGGER.entering(endpoint); // getPolicyMap is deprecated because it is only supposed to be used by Metro code // and not by other clients. @SuppressWarnings("deprecation") final PolicyMap policyMap = endpoint.getPolicyMap(); final ManagedServiceAssertion assertion = ManagementAssertion.getAssertion(MANAGED_SERVICE_QNAME, policyMap, endpoint.getServiceName(), endpoint.getPortName(), ManagedServiceAssertion.class); LOGGER.exiting(assertion); return assertion; }
/** * Return ManagedClient assertion if there is one associated with the client. * * @param portInfo The client PortInfo. * @return The policy assertion if found. Null otherwise. * @throws WebServiceException If computing the effective policy of the port failed. */ public static ManagedClientAssertion getAssertion(WSPortInfo portInfo) throws WebServiceException { if (portInfo == null) return null; LOGGER.entering(portInfo); // getPolicyMap is deprecated because it is only supposed to be used by Metro code // and not by other clients. @SuppressWarnings("deprecation") final PolicyMap policyMap = portInfo.getPolicyMap(); final ManagedClientAssertion assertion = ManagementAssertion.getAssertion(MANAGED_CLIENT_QNAME, policyMap, portInfo.getServiceName(), portInfo.getPortName(), ManagedClientAssertion.class); LOGGER.exiting(assertion); return assertion; }
/** * Return ManagedClient assertion if there is one associated with the client. * * @param portInfo The client PortInfo. * @return The policy assertion if found. Null otherwise. * @throws WebServiceException If computing the effective policy of the port failed. */ public static ManagedClientAssertion getAssertion(WSPortInfo portInfo) throws WebServiceException { if (portInfo == null) return null; LOGGER.entering(portInfo); // getPolicyMap is deprecated because it is only supposed to be used by Metro code // and not by other clients. @SuppressWarnings("deprecation") final PolicyMap policyMap = portInfo.getPolicyMap(); final ManagedClientAssertion assertion = ManagementAssertion.getAssertion(MANAGED_CLIENT_QNAME, policyMap, portInfo.getServiceName(), portInfo.getPortName(), ManagedClientAssertion.class); LOGGER.exiting(assertion); return assertion; }
/** * Return ManagedService assertion if there is one associated with the endpoint. * * @param endpoint The endpoint. Must not be null. * @return The policy assertion if found. Null otherwise. * @throws WebServiceException If computing the effective policy of the endpoint failed. */ public static ManagedServiceAssertion getAssertion(WSEndpoint endpoint) throws WebServiceException { LOGGER.entering(endpoint); // getPolicyMap is deprecated because it is only supposed to be used by Metro code // and not by other clients. @SuppressWarnings("deprecation") final PolicyMap policyMap = endpoint.getPolicyMap(); final ManagedServiceAssertion assertion = ManagementAssertion.getAssertion(MANAGED_SERVICE_QNAME, policyMap, endpoint.getServiceName(), endpoint.getPortName(), ManagedServiceAssertion.class); LOGGER.exiting(assertion); return assertion; }
/** * Return ManagedClient assertion if there is one associated with the client. * * @param portInfo The client PortInfo. * @return The policy assertion if found. Null otherwise. * @throws WebServiceException If computing the effective policy of the port failed. */ public static ManagedClientAssertion getAssertion(WSPortInfo portInfo) throws WebServiceException { if (portInfo == null) return null; LOGGER.entering(portInfo); // getPolicyMap is deprecated because it is only supposed to be used by Metro code // and not by other clients. @SuppressWarnings("deprecation") final PolicyMap policyMap = portInfo.getPolicyMap(); final ManagedClientAssertion assertion = ManagementAssertion.getAssertion(MANAGED_CLIENT_QNAME, policyMap, portInfo.getServiceName(), portInfo.getPortName(), ManagedClientAssertion.class); LOGGER.exiting(assertion); return assertion; }
@Override public URL getResource(String resource) throws MalformedURLException { LOGGER.entering(resource); URL resourceUrl = null; try { if (parentLoader != null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine(TubelineassemblyMessages.MASM_0011_LOADING_RESOURCE(resource, parentLoader)); } resourceUrl = parentLoader.getResource(resource); } if (resourceUrl == null) { resourceUrl = loadViaClassLoaders("META-INF/" + resource); } if (resourceUrl == null && container != null) { // TODO: we should remove this code path, the config file should be loaded using ResourceLoader only resourceUrl = loadFromServletContext(resource); } return resourceUrl; } finally { LOGGER.exiting(resourceUrl); } }
@Override public URL getResource(String resource) throws MalformedURLException { LOGGER.entering(resource); URL resourceUrl = null; try { if (parentLoader != null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine(TubelineassemblyMessages.MASM_0011_LOADING_RESOURCE(resource, parentLoader)); } resourceUrl = parentLoader.getResource(resource); } if (resourceUrl == null) { resourceUrl = loadViaClassLoaders("META-INF/" + resource); } if (resourceUrl == null && container != null) { // TODO: we should remove this code path, the config file should be loaded using ResourceLoader only resourceUrl = loadFromServletContext(resource); } return resourceUrl; } finally { LOGGER.exiting(resourceUrl); } }
@Override public URL getResource(String resource) throws MalformedURLException { LOGGER.entering(resource); URL resourceUrl = null; try { if (parentLoader != null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine(TubelineassemblyMessages.MASM_0011_LOADING_RESOURCE(resource, parentLoader)); } resourceUrl = parentLoader.getResource(resource); } if (resourceUrl == null) { resourceUrl = loadViaClassLoaders("META-INF/" + resource); } if (resourceUrl == null && container != null) { // TODO: we should remove this code path, the config file should be loaded using ResourceLoader only resourceUrl = loadFromServletContext(resource); } return resourceUrl; } finally { LOGGER.exiting(resourceUrl); } }