FileDocCategorySizeDatePackage
EndpointImpl.javaAPI DocGlassfish v2 API4581Fri May 04 22:36:16 BST 2007com.sun.enterprise.webservice.monitoring

EndpointImpl

public class EndpointImpl extends Object implements Endpoint
Implementation of the endpoint interface
author
Jerome Dochez

Fields Summary
public static final String
NAME
public static final String
MESSAGE_ID
public static final String
REQUEST_TRACE
final String
endpointSelector
final EndpointType
type
com.sun.enterprise.deployment.WebServiceEndpoint
endpointDesc
List
listeners
Constructors Summary
EndpointImpl(String endpointSelector, EndpointType type)
Creates a new instance of EndpointImpl

    
           
        
        this.endpointSelector = endpointSelector;
        this.type = type;
    
Methods Summary
public voidaddListener(MessageListener newListener)
registers a new SOAPMessageListener for this endpoint

param
the listener instance to register.

        listeners.add(newListener);
    
public com.sun.enterprise.deployment.WebServiceEndpointgetDescriptor()
Return the deployment descriptors associated with this endpoint.

        return endpointDesc;
    
public java.lang.StringgetEndpointSelector()

return
the endpoint URL as a string. This is the URL web service clients use to invoke the endpoint.

        
        return endpointSelector;
    
public EndpointTypegetEndpointType()

return
the endpoint type

        return type;
    
public TransportTypegetTransport()
Returns the Transport type

        return TransportType.HTTP;
    
public booleanhasListeners()
Returns true if this endpoint has listeners registered

return
true if at least one listener is registered

        return !listeners.isEmpty();
    
public voidremoveListener(MessageListener listener)
unregiters a SOAPMessageListener for this endpoint

param
the listener instance to unregister.

        listeners.remove(listener);
    
public voidsetDescriptor(com.sun.enterprise.deployment.WebServiceEndpoint endpointDesc)
Set the WebServiceEndpoint DOL descriptor

        
        if (endpointDesc!=null) {
            endpointDesc.addExtraAttribute(EndpointImpl.NAME, this);        
        }
        this.endpointDesc = endpointDesc;