Methods Summary |
---|
public void | addAuthListener(AuthenticationListener listener)
authListeners.add(listener);
|
public void | addLifecycleListener(EndpointLifecycleListener listener)
lifecycleListeners.add(listener);
|
private EndpointImpl | createEndpointInfo(com.sun.enterprise.deployment.WebServiceEndpoint endpoint)
try {
String endpointURL = endpoint.getEndpointAddressUri();
EndpointType endpointType;
ModuleType moduleType = endpoint.getWebService().getWebServicesDescriptor().getModuleType();
if (moduleType.equals(ModuleType.EJB)) {
endpointType = EndpointType.EJB_ENDPOINT;
} else {
endpointType = EndpointType.SERVLET_ENDPOINT;
}
EndpointImpl newEndpoint;
// At this point, we can depend on presence of mapping file to distinguish between JAXRPC and JAXWS
// service
if(endpoint.getWebService().getMappingFileUri()==null) {
newEndpoint = new JAXWSEndpointImpl(endpointURL, endpointType);
} else {
newEndpoint = new JAXRPCEndpointImpl(endpointURL, endpointType);
}
newEndpoint.setDescriptor(endpoint);
return newEndpoint;
} catch(Exception e) {
e.printStackTrace();
}
return null;
|
public EndpointImpl | createHandler(com.sun.enterprise.deployment.WebServiceEndpoint endpointDesc)
EndpointImpl newEndpoint = createEndpointInfo(endpointDesc);
if (newEndpoint==null) {
return null;
}
String key = newEndpoint.getEndpointSelector();
endpoints.put(key, newEndpoint);
// notify listeners
for (EndpointLifecycleListener listener : lifecycleListeners) {
listener.endpointAdded(newEndpoint);
}
return newEndpoint;
|
public EndpointImpl | createHandler(com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate parent, com.sun.enterprise.deployment.WebServiceEndpoint endpointDesc)
EndpointImpl newEndpoint = createHandler(endpointDesc);
((JAXRPCEndpointImpl)newEndpoint).setParent(parent);
return newEndpoint;
|
public java.util.Collection | getAuthListeners()
return authListeners;
|
public Endpoint | getEndpoint(java.lang.String uri)
return endpoints.get(uri);
|
public java.util.Iterator | getEndpoints()
return endpoints.values().iterator();
|
public GlobalMessageListener | getGlobalMessageListener()
return globalMessageListener;
|
public static com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl | getInstance()
return INSTANCE;
|
public java.lang.ThreadLocal | getThreadLocal()
return servletThreadLocal;
|
public boolean | hasGlobalMessageListener()
return globalMessageListener!=null;
|
public void | postProcessResponse(java.lang.String messageID, TransportInfo info)Callback when a web service response has finished being processed
by the container and was sent back to the client
if (globalMessageListener==null)
return;
globalMessageListener.postProcessResponse(messageID, info);
|
public java.lang.String | preProcessRequest(Endpoint endpoint)Callback when a web service request entered the web service container
before any processing is done.
if (globalMessageListener==null)
return null;
return globalMessageListener.preProcessRequest(endpoint);
|
public void | processRequest(java.lang.String messageID, com.sun.xml.rpc.spi.runtime.SOAPMessageContext context, TransportInfo info)Callback when a web service request is received on
the endpoint.
if (globalMessageListener==null)
return;
globalMessageListener.processRequest(messageID, context, info);
|
public void | processRequest(java.lang.String messageID, com.sun.enterprise.webservice.SOAPMessageContext context, TransportInfo info)Callback when a 2.0 web service request is received on
the endpoint.
if (globalMessageListener==null)
return;
globalMessageListener.processRequest(messageID, context, info);
|
public void | processResponse(java.lang.String messageID, com.sun.xml.rpc.spi.runtime.SOAPMessageContext context)Callback when a web service response is received on the
endpoint.
if (globalMessageListener==null)
return;
globalMessageListener.processResponse(messageID, context);
|
public void | processResponse(java.lang.String messageID, com.sun.enterprise.webservice.SOAPMessageContext context)Callback when a 2.0 web service response is received on the
endpoint.
if (globalMessageListener==null)
return;
globalMessageListener.processResponse(messageID, context);
|
public void | removeAuthListener(AuthenticationListener listener)
authListeners.remove(listener);
|
public void | removeHandler(com.sun.enterprise.deployment.WebServiceEndpoint endpointDesc)
EndpointImpl endpoint = (EndpointImpl) endpointDesc.getExtraAttribute(EndpointImpl.NAME);
if (endpoint==null)
return;
// remove this endpoint from our list of endpoints
endpoints.remove(endpoint.getEndpointSelector());
// notify listeners
for (EndpointLifecycleListener listener : lifecycleListeners) {
listener.endpointRemoved(endpoint);
}
// forcing the cleaning so we don't have DOL objects staying alive because
// some of our clients have not released the endpoint instance.
endpoint.setDescriptor(null);
|
public void | removeLifecycleListener(EndpointLifecycleListener listener)
lifecycleListeners.remove(listener);
|
public void | setGlobalMessageListener(GlobalMessageListener listener)
globalMessageListener = listener;
|