@Override protected final void stopListeningForService(AxisService service) { for (E endpoint : serviceEndpoints) { if (service == endpoint.getService()) { stopEndpoint(endpoint); serviceEndpoints.remove(endpoint); return; } } if (globalEndpoint == null) { log.error("Unable to stop service : " + service.getName() + " - unable to find the corresponding protocol endpoint"); } }
@Override public final void init(ConfigurationContext cfgCtx, TransportInDescription transportIn) throws AxisFault { super.init(cfgCtx, transportIn); doInit(); // Create endpoint configured at transport level (if available) E endpoint = createEndpoint(); endpoint.init(this, null); if (endpoint.loadConfiguration(transportIn)) { globalEndpoint = endpoint; } }
@Override public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault { // strip out the endpoint name if present if (serviceName.indexOf('.') != -1) { serviceName = serviceName.substring(0, serviceName.indexOf('.')); } for (E endpoint : serviceEndpoints) { AxisService service = endpoint.getService(); if (service.getName().equals(serviceName)) { return endpoint.getEndpointReferences(service, ip); } } // If we get here, this means that the service is not explicitly configured // with a specific protocol endpoint. However, it is still exposed over the // transport. In this case, we build the EPR using the endpoint configured // at the transport level, if there is one. if (globalEndpoint != null) { AxisService service = cfgCtx.getAxisConfiguration().getService(serviceName); if (service == null) { // Oops, something strange is happening here return null; } else { return globalEndpoint.getEndpointReferences(service, ip); } } else { return null; } }
@Override public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault { // strip out the endpoint name if present if (serviceName.indexOf('.') != -1) { serviceName = serviceName.substring(0, serviceName.indexOf('.')); } for (E endpoint : serviceEndpoints) { AxisService service = endpoint.getService(); if (service.getName().equals(serviceName)) { return endpoint.getEndpointReferences(service, ip); } } // If we get here, this means that the service is not explicitly configured // with a specific protocol endpoint. However, it is still exposed over the // transport. In this case, we build the EPR using the endpoint configured // at the transport level, if there is one. if (globalEndpoint != null) { AxisService service = cfgCtx.getAxisConfiguration().getService(serviceName); if (service == null) { // Oops, something strange is happening here return null; } else { return globalEndpoint.getEndpointReferences(service, ip); } } else { return null; } }
@Override protected final void startListeningForService(AxisService service) throws AxisFault { E endpoint = createEndpoint(); endpoint.init(this, service); if (endpoint.loadConfiguration(service)) { startEndpoint(endpoint); serviceEndpoints.add(endpoint); } else if (globalEndpoint != null) { return; } else { throw new AxisFault("Service doesn't have configuration information for transport " + getTransportName()); } }
@Override protected final void stopListeningForService(AxisService service) { for (E endpoint : serviceEndpoints) { if (service == endpoint.getService()) { stopEndpoint(endpoint); serviceEndpoints.remove(endpoint); return; } } if (globalEndpoint == null) { log.error("Unable to stop service : " + service.getName() + " - unable to find the corresponding protocol endpoint"); } }
@Override protected final void startListeningForService(AxisService service) throws AxisFault { E endpoint = createEndpoint(); endpoint.init(this, service); if (endpoint.loadConfiguration(service)) { startEndpoint(endpoint); serviceEndpoints.add(endpoint); } else if (globalEndpoint != null) { return; } else { throw new AxisFault("Service doesn't have configuration information for transport " + getTransportName()); } }
@Override public final void init(ConfigurationContext cfgCtx, TransportInDescription transportIn) throws AxisFault { super.init(cfgCtx, transportIn); doInit(); // Create endpoint configured at transport level (if available) E endpoint = createEndpoint(); endpoint.init(this, null); if (endpoint.loadConfiguration(transportIn)) { globalEndpoint = endpoint; } }