/** * Returns the connector service associated to a request. * * @return The connector service associated to a request. */ public static org.restlet.service.ConnectorService getConnectorService() { org.restlet.service.ConnectorService result = null; org.restlet.Application application = org.restlet.Application .getCurrent(); if (application != null) { result = application.getConnectorService(); } else { result = new org.restlet.service.ConnectorService(); } return result; }
Application application = (Application) next; if (application.getConnectorService() != null) { if (application.getConnectorService() .getClientProtocols() != null) { for (Protocol clientProtocol : application .getConnectorService().getClientProtocols()) { boolean clientFound = false; if (application.getConnectorService() .getServerProtocols() != null) { for (Protocol serverProtocol : application .getConnectorService().getServerProtocols()) { boolean serverFound = false;
if (getConnectorService() != null) { getConnectorService().start();
public synchronized void stop() throws Exception { if (isStarted()) { if (getConnectorService() != null) { getConnectorService().stop();
.getChild(); if (!application.getConnectorService().getClientProtocols() .contains(protocol)) { getLogger()