use of com.sun.enterprise.deployment.WebServiceEndpoint in project Payara by payara.
the class WebServicesDeploymentMBean method deploy.
public synchronized void deploy(WebServicesDescriptor wsDesc, WebServiceDeploymentNotifier notifier) {
for (WebService svc : wsDesc.getWebServices()) {
for (WebServiceEndpoint endpoint : svc.getEndpoints()) {
deploy(endpoint);
notifier.notifyDeployed(endpoint);
}
}
}
use of com.sun.enterprise.deployment.WebServiceEndpoint in project Payara by payara.
the class AppServRegistry method deregisterEndpoint.
/**
* Deregister WS Endpoint
*/
protected void deregisterEndpoint(@NotNull final Endpoint endpoint) {
final WebServiceEndpoint wsServiceDescriptor = endpoint.getDescriptor();
final String wsPath = getWebServiceEndpointPath(wsServiceDescriptor);
if (logger.isLoggable(Level.FINE)) {
logger.log(Level.FINE, MessagesMessages.WSTCP_1111_APP_SERV_REG_DEREGISTER_ENDPOINT(wsServiceDescriptor.getWebService().getName(), wsPath, wsServiceDescriptor.implementedByEjbComponent()));
}
WSTCPAdapterRegistryImpl.getInstance().deregisterEndpoint(wsPath);
}
use of com.sun.enterprise.deployment.WebServiceEndpoint in project Payara by payara.
the class AppServRegistry method registerEndpoint.
/**
* Register new WS Endpoint
*/
protected void registerEndpoint(@NotNull final Endpoint endpoint) {
final WebServiceEndpoint wsServiceDescriptor = endpoint.getDescriptor();
if (wsServiceDescriptor != null && isTCPEnabled(wsServiceDescriptor)) {
final String contextRoot = getEndpointContextRoot(wsServiceDescriptor);
final String urlPattern = getEndpointUrlPattern(wsServiceDescriptor);
final String wsPath = getWebServiceEndpointPath(wsServiceDescriptor);
if (logger.isLoggable(Level.FINE)) {
logger.log(Level.FINE, MessagesMessages.WSTCP_1110_APP_SERV_REG_REGISTER_ENDPOINT(wsServiceDescriptor.getServiceName(), wsPath, wsServiceDescriptor.implementedByEjbComponent()));
}
final WSEndpointDescriptor descriptor = new WSEndpointDescriptor(wsServiceDescriptor, contextRoot, urlPattern, endpoint.getEndpointSelector());
WSTCPAdapterRegistryImpl.getInstance().registerEndpoint(wsPath, descriptor);
}
}
Aggregations