Module org.glassfish.metro.wsit.api
Class ManagedEndpoint<T>
java.lang.Object
com.sun.xml.ws.api.server.WSEndpoint<T>
com.sun.xml.ws.metro.api.config.management.ManagedEndpoint<T>
- Type Parameters:
T- The implementation class of the endpoint.
- All Implemented Interfaces:
com.sun.xml.ws.api.Component,com.sun.xml.ws.api.ComponentRegistry
public class ManagedEndpoint<T>
extends com.sun.xml.ws.api.server.WSEndpoint<T>
Wraps an existing WSEndpoint instance and provides a method to swap the
WSEndpoint instance. This class also brings up the management communication
interfaces when it is instantiated.
This class forwards all method invocations to the wrapped WSEndpoint instance.
- Author:
- Fabian Ritzmann, Martin Grebac
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.xml.ws.api.server.WSEndpoint
com.sun.xml.ws.api.server.WSEndpoint.CompletionCallback, com.sun.xml.ws.api.server.WSEndpoint.PipeHead -
Constructor Summary
ConstructorsConstructorDescriptionManagedEndpoint(com.sun.xml.ws.api.server.WSEndpoint<T> endpoint, com.sun.xml.ws.api.config.management.EndpointCreationAttributes attributes) Initializes this endpoint. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotifier(ReconfigNotifier notifier) voidcom.sun.xml.ws.api.pipe.Codeccom.sun.xml.ws.api.server.WSEndpoint.PipeHeadcom.sun.xml.ws.api.message.PacketcreateServiceResponseForException(com.sun.xml.ws.api.pipe.ThrowableContainerPropertySet tcps, com.sun.xml.ws.api.message.Packet packet, com.sun.xml.ws.api.SOAPVersion soapv, com.sun.xml.ws.api.model.wsdl.WSDLPort wsdlp, com.sun.xml.ws.api.model.SEIModel seim, com.sun.xml.ws.api.WSBinding wsb) voiddispose()booleanequalsProxiedInstance(com.sun.xml.ws.api.server.WSEndpoint endpoint) com.sun.xml.ws.api.pipe.ServerTubeAssemblerContextcom.sun.xml.ws.api.WSBindingSet<com.sun.xml.ws.api.Component>com.sun.xml.ws.api.server.Containercom.sun.xml.ws.api.config.management.EndpointCreationAttributesReturns attributes used for creation of this endpoint.<T extends jakarta.xml.ws.EndpointReference>
TgetEndpointReference(Class<T> clazz, String address, String wsdlAddress, List<Element> metadata, List<Element> referenceParameters) <T extends jakarta.xml.ws.EndpointReference>
TgetEndpointReference(Class<T> clazz, String address, String wsdlAddress, Element... referenceParameters) org.glassfish.gmbal.ManagedObjectManagercom.sun.xml.ws.wsdl.OperationDispatchercom.sun.xml.ws.policy.PolicyMapcom.sun.xml.ws.api.model.wsdl.WSDLPortgetPort()com.sun.xml.ws.api.model.SEIModelcom.sun.xml.ws.api.server.ServiceDefinitionvoidprocess(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint.CompletionCallback callback, com.sun.xml.ws.api.pipe.FiberContextSwitchInterceptor interceptor) voidschedule(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint.CompletionCallback callback, com.sun.xml.ws.api.pipe.FiberContextSwitchInterceptor interceptor) voidsetExecutor(Executor exec) voidswapEndpointDelegate(com.sun.xml.ws.api.server.WSEndpoint<T> endpoint) Sets a new WSEndpoint instance to which method calls will be forwarded from then on.Methods inherited from class com.sun.xml.ws.api.server.WSEndpoint
create, create, create, create, getBoundEndpoints, getComponentRegistry, getDefaultPortName, getDefaultPortName, getDefaultPortName, getDefaultPortName, getDefaultServiceName, getDefaultServiceName, getDefaultServiceName, getDefaultServiceName, getEngine, getSPI, schedule
-
Constructor Details
-
ManagedEndpoint
public ManagedEndpoint(com.sun.xml.ws.api.server.WSEndpoint<T> endpoint, com.sun.xml.ws.api.config.management.EndpointCreationAttributes attributes) Initializes this endpoint.- Parameters:
endpoint- The wrapped WSEndpoint instance.attributes- Several attributes that were used to create the original WSEndpoint instance and that cannot be queried from WSEndpoint itself. This is used by the communication API to recreate WSEndpoint instances with the same parameters.
-
-
Method Details
-
addNotifier
- Parameters:
notifier- Callback object allows us to send a notification when the endpoint was reconfigured.
-
getCreationAttributes
public com.sun.xml.ws.api.config.management.EndpointCreationAttributes getCreationAttributes()Returns attributes used for creation of this endpoint. -
swapEndpointDelegate
Sets a new WSEndpoint instance to which method calls will be forwarded from then on.- Parameters:
endpoint- The WSEndpoint instance. May not be null.
-
dispose
public void dispose()- Specified by:
disposein classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
createCodec
public com.sun.xml.ws.api.pipe.Codec createCodec()- Specified by:
createCodecin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getServiceName
- Specified by:
getServiceNamein classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getPortName
- Specified by:
getPortNamein classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getImplementationClass
- Specified by:
getImplementationClassin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getBinding
public com.sun.xml.ws.api.WSBinding getBinding()- Specified by:
getBindingin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getContainer
public com.sun.xml.ws.api.server.Container getContainer()- Specified by:
getContainerin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getPort
public com.sun.xml.ws.api.model.wsdl.WSDLPort getPort()- Specified by:
getPortin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
setExecutor
- Specified by:
setExecutorin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
schedule
public void schedule(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint.CompletionCallback callback, com.sun.xml.ws.api.pipe.FiberContextSwitchInterceptor interceptor) - Specified by:
schedulein classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
process
public void process(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint.CompletionCallback callback, com.sun.xml.ws.api.pipe.FiberContextSwitchInterceptor interceptor) - Overrides:
processin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
createPipeHead
public com.sun.xml.ws.api.server.WSEndpoint.PipeHead createPipeHead()- Specified by:
createPipeHeadin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getServiceDefinition
public com.sun.xml.ws.api.server.ServiceDefinition getServiceDefinition()- Specified by:
getServiceDefinitionin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getComponents
- Specified by:
getComponentsin interfacecom.sun.xml.ws.api.ComponentRegistry- Overrides:
getComponentsin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getSEIModel
public com.sun.xml.ws.api.model.SEIModel getSEIModel()- Specified by:
getSEIModelin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getPolicyMap
public com.sun.xml.ws.policy.PolicyMap getPolicyMap()- Specified by:
getPolicyMapin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getManagedObjectManager
public org.glassfish.gmbal.ManagedObjectManager getManagedObjectManager()- Specified by:
getManagedObjectManagerin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
closeManagedObjectManager
public void closeManagedObjectManager()- Specified by:
closeManagedObjectManagerin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getAssemblerContext
public com.sun.xml.ws.api.pipe.ServerTubeAssemblerContext getAssemblerContext()- Specified by:
getAssemblerContextin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
equalsProxiedInstance
public boolean equalsProxiedInstance(com.sun.xml.ws.api.server.WSEndpoint endpoint) - Overrides:
equalsProxiedInstancein classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getEndpointReference
public <T extends jakarta.xml.ws.EndpointReference> T getEndpointReference(Class<T> clazz, String address, String wsdlAddress, Element... referenceParameters) - Specified by:
getEndpointReferencein classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getEndpointReference
public <T extends jakarta.xml.ws.EndpointReference> T getEndpointReference(Class<T> clazz, String address, String wsdlAddress, List<Element> metadata, List<Element> referenceParameters) - Specified by:
getEndpointReferencein classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
getOperationDispatcher
public com.sun.xml.ws.wsdl.OperationDispatcher getOperationDispatcher()- Specified by:
getOperationDispatcherin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-
createServiceResponseForException
public com.sun.xml.ws.api.message.Packet createServiceResponseForException(com.sun.xml.ws.api.pipe.ThrowableContainerPropertySet tcps, com.sun.xml.ws.api.message.Packet packet, com.sun.xml.ws.api.SOAPVersion soapv, com.sun.xml.ws.api.model.wsdl.WSDLPort wsdlp, com.sun.xml.ws.api.model.SEIModel seim, com.sun.xml.ws.api.WSBinding wsb) - Specified by:
createServiceResponseForExceptionin classcom.sun.xml.ws.api.server.WSEndpoint<T>
-