public class WSEndpointMOMProxy extends WSEndpoint implements org.glassfish.gmbal.ManagedObjectManager
ManagedObjectManager proxy class for WSEndpointImpl instances that could be used when Gmbal API calls
need to be deferred. The proxy tries to defer a need of a real ManagedObjectManager instance to the time when any
method from ManagedObjectManager is invoked on it. In this case a real instance of ManagedObjectManager is
obtained from WSEndpointImpl and the method is rather invoked on this object.WSEndpoint.CompletionCallback, WSEndpoint.PipeHead| Constructor and Description |
|---|
WSEndpointMOMProxy(WSEndpointImpl wsEndpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(AnnotatedElement element,
Annotation annotation) |
void |
addInheritedAnnotations(Class<?> clazz) |
void |
close() |
void |
closeManagedObjectManager()
Close the ManagedObjectManager for this endpoint.
|
Codec |
createCodec()
Gets the Endpoint's codec that is used to encode/decode
Messages. |
WSEndpoint.PipeHead |
createPipeHead()
Creates a new
WSEndpoint.PipeHead to process
incoming requests. |
org.glassfish.gmbal.GmbalMBean |
createRoot() |
org.glassfish.gmbal.GmbalMBean |
createRoot(Object root) |
org.glassfish.gmbal.GmbalMBean |
createRoot(Object root,
String name) |
void |
dispose()
Indicates that the
WSEndpoint is about to be turned off,
and will no longer serve any packet anymore. |
String |
dumpSkeleton(Object obj) |
boolean |
equalsProxiedInstance(WSEndpoint endpoint)
Used for managed endpoints infrastructure to compare equality of proxies vs proxied endpoints.
|
org.glassfish.gmbal.AMXClient |
getAMXClient(Object obj) |
ServerTubeAssemblerContext |
getAssemblerContext()
This is only needed to expose info for monitoring.
|
WSBinding |
getBinding()
Represents the binding for which this
WSEndpoint
is created for. |
Set |
getComponentRegistry()
Gets the list of
EndpointComponent that are associated
with this endpoint. |
Container |
getContainer()
Gets the
Container object. |
String |
getDomain() |
EndpointReference |
getEndpointReference(Class clazz,
String address,
String wsdlAddress,
Element... referenceParameters)
Return EndpointReference instance, based on passed parameters and spec version represented by clazz
|
EndpointReference |
getEndpointReference(Class clazz,
String address,
String wsdlAddress,
List metadata,
List referenceParameters) |
Class |
getImplementationClass()
Gets the application endpoint
Class that eventually serves the request. |
org.glassfish.gmbal.ManagedObjectManager |
getManagedObjectManager()
Returns a real instance of
ManagedObjectManager |
MBeanServer |
getMBeanServer() |
Object |
getObject(ObjectName oname) |
ObjectName |
getObjectName(Object obj) |
org.glassfish.pfl.tf.timer.spi.ObjectRegistrationManager |
getObjectRegistrationManager() |
OperationDispatcher |
getOperationDispatcher()
Nullable when there is no associated WSDL Model
|
com.sun.xml.ws.policy.PolicyMap |
getPolicyMap()
Gives the PolicMap that captures the Policy for the endpoint
|
WSDLPort |
getPort()
Gets the port that this endpoint is serving.
|
QName |
getPortName()
Gets the application endpoint's portName.
|
ResourceBundle |
getResourceBundle() |
Object |
getRoot() |
SEIModel |
getSEIModel()
Gets the
SEIModel that represents the relationship
between WSDL and Java SEI. |
ServiceDefinition |
getServiceDefinition()
Gets the description of the service.
|
QName |
getServiceName()
Gets the application endpoint's serviceName.
|
WSEndpointImpl |
getWsEndpoint() |
boolean |
isInitialized()
Returns
true if this proxy contains a reference to real ManagedObjectManager instance, false
otherwise. |
boolean |
isManagedObject(Object obj) |
org.glassfish.gmbal.GmbalMBean |
register(Object parent,
Object obj) |
org.glassfish.gmbal.GmbalMBean |
register(Object parent,
Object obj,
String name) |
org.glassfish.gmbal.GmbalMBean |
registerAtRoot(Object obj) |
org.glassfish.gmbal.GmbalMBean |
registerAtRoot(Object obj,
String name) |
void |
resumeJMXRegistration() |
void |
schedule(Packet request,
WSEndpoint.CompletionCallback callback,
FiberContextSwitchInterceptor interceptor)
Schedule invocation of web service asynchronously.
|
void |
setExecutor(Executor exec)
Set this
Executor to run asynchronous requests using this executor. |
void |
setJMXRegistrationDebug(boolean flag) |
(package private) void |
setManagedObjectManager(org.glassfish.gmbal.ManagedObjectManager managedObjectManager) |
void |
setMBeanServer(MBeanServer server) |
void |
setRegistrationDebug(org.glassfish.gmbal.ManagedObjectManager.RegistrationDebugLevel level) |
void |
setResourceBundle(ResourceBundle rb) |
void |
setRuntimeDebug(boolean flag) |
void |
setTypelibDebug(int level) |
void |
stripPackagePrefix() |
void |
stripPrefix(String... str) |
void |
suppressDuplicateRootReport(boolean suppressReport) |
void |
suspendJMXRegistration() |
void |
unregister(Object obj) |
create, create, create, create, getBoundEndpoints, getComponents, getDefaultPortName, getDefaultPortName, getDefaultServiceName, getDefaultServiceName, getEngine, getSPI, process, scheduleWSEndpointMOMProxy(@NotNull
WSEndpointImpl wsEndpoint)
public org.glassfish.gmbal.ManagedObjectManager getManagedObjectManager()
ManagedObjectManagergetManagedObjectManager in class WSEndpointvoid setManagedObjectManager(org.glassfish.gmbal.ManagedObjectManager managedObjectManager)
public boolean isInitialized()
true if this proxy contains a reference to real ManagedObjectManager instance, false
otherwise.true if ManagedObjectManager has been created, false otherwise.public WSEndpointImpl getWsEndpoint()
public void suspendJMXRegistration()
suspendJMXRegistration in interface org.glassfish.gmbal.ManagedObjectManagerpublic void resumeJMXRegistration()
resumeJMXRegistration in interface org.glassfish.gmbal.ManagedObjectManagerpublic boolean isManagedObject(Object obj)
isManagedObject in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean createRoot()
createRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean createRoot(Object root)
createRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean createRoot(Object root, String name)
createRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic Object getRoot()
getRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean register(Object parent, Object obj, String name)
register in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean register(Object parent, Object obj)
register in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean registerAtRoot(Object obj, String name)
registerAtRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean registerAtRoot(Object obj)
registerAtRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic void unregister(Object obj)
unregister in interface org.glassfish.gmbal.ManagedObjectManagerpublic ObjectName getObjectName(Object obj)
getObjectName in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.AMXClient getAMXClient(Object obj)
getAMXClient in interface org.glassfish.gmbal.ManagedObjectManagerpublic Object getObject(ObjectName oname)
getObject in interface org.glassfish.gmbal.ManagedObjectManagerpublic void stripPrefix(String... str)
stripPrefix in interface org.glassfish.gmbal.ManagedObjectManagerpublic void stripPackagePrefix()
stripPackagePrefix in interface org.glassfish.gmbal.ManagedObjectManagerpublic String getDomain()
getDomain in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setMBeanServer(MBeanServer server)
setMBeanServer in interface org.glassfish.gmbal.ManagedObjectManagerpublic MBeanServer getMBeanServer()
getMBeanServer in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setResourceBundle(ResourceBundle rb)
setResourceBundle in interface org.glassfish.gmbal.ManagedObjectManagerpublic ResourceBundle getResourceBundle()
getResourceBundle in interface org.glassfish.gmbal.ManagedObjectManagerpublic void addAnnotation(AnnotatedElement element, Annotation annotation)
addAnnotation in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setRegistrationDebug(org.glassfish.gmbal.ManagedObjectManager.RegistrationDebugLevel level)
setRegistrationDebug in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setRuntimeDebug(boolean flag)
setRuntimeDebug in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setTypelibDebug(int level)
setTypelibDebug in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setJMXRegistrationDebug(boolean flag)
setJMXRegistrationDebug in interface org.glassfish.gmbal.ManagedObjectManagerpublic String dumpSkeleton(Object obj)
dumpSkeleton in interface org.glassfish.gmbal.ManagedObjectManagerpublic void suppressDuplicateRootReport(boolean suppressReport)
suppressDuplicateRootReport in interface org.glassfish.gmbal.ManagedObjectManagerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean equalsProxiedInstance(WSEndpoint endpoint)
WSEndpointequalsProxiedInstance in class WSEndpointpublic Codec createCodec()
WSEndpointMessages. This is a
copy of the master codec and it shouldn't be shared across two requests running
concurrently(unless it is stateless).createCodec in class WSEndpointpublic QName getServiceName()
WSEndpointgetServiceName in class WSEndpointpublic QName getPortName()
WSEndpointgetPortName in class WSEndpointpublic Class getImplementationClass()
WSEndpointClass that eventually serves the request.
This is the same value given to the WSEndpoint.create(java.lang.Class<T>, boolean, com.sun.xml.ws.api.server.Invoker, javax.xml.namespace.QName, javax.xml.namespace.QName, com.sun.xml.ws.api.server.Container, com.sun.xml.ws.api.WSBinding, com.sun.xml.ws.api.server.SDDocumentSource, java.util.Collection<? extends com.sun.xml.ws.api.server.SDDocumentSource>, org.xml.sax.EntityResolver, boolean) method.
getImplementationClass in class WSEndpointpublic WSBinding getBinding()
WSEndpointWSEndpoint
is created for.getBinding in class WSEndpointpublic Container getContainer()
WSEndpointContainer object.
The components inside WSEndpoint uses this reference
to communicate with the hosting environment.
getContainer in class WSEndpointContainer instance
is given, Container.NONE will be returned.public WSDLPort getPort()
WSEndpoint
A service is not required to have a WSDL, and when it doesn't,
this method returns null. Otherwise it returns an object that
describes the port that this WSEndpoint is serving.
getPort in class WSEndpointpublic void setExecutor(Executor exec)
WSEndpointExecutor to run asynchronous requests using this executor.
This executor is set on Engine and must be set before
calling WSEndpoint.schedule(Packet,CompletionCallback) and
WSEndpoint.schedule(Packet,CompletionCallback,FiberContextSwitchInterceptor) methods.setExecutor in class WSEndpointexec - Executor to run async requestspublic void schedule(Packet request, WSEndpoint.CompletionCallback callback, FiberContextSwitchInterceptor interceptor)
WSEndpointschedule in class WSEndpointrequest - web service requestcallback - callback to get response packet(exception if there is one)interceptor - caller's interceptor to impose a context of execution#schedule(Packet, CompletionCallback)}public WSEndpoint.PipeHead createPipeHead()
WSEndpointWSEndpoint.PipeHead to process
incoming requests.
This is not a cheap operation. The caller is expected
to reuse the returned WSEndpoint.PipeHead. See
class javadoc for details.
createPipeHead in class WSEndpointWSEndpoint.PipeHead that's ready to serve.public void dispose()
WSEndpointWSEndpoint is about to be turned off,
and will no longer serve any packet anymore.
This method needs to be invoked for the JAX-WS RI to correctly
implement some of the spec semantics (TODO: pointer.)
It's the responsibility of the code that hosts a WSEndpoint
to invoke this method.
Once this method is called, the behavior is undefed for
all in-progress WSEndpoint.PipeHead.process(com.sun.xml.ws.api.message.Packet, com.sun.xml.ws.api.server.WebServiceContextDelegate, com.sun.xml.ws.api.server.TransportBackChannel) methods (by other threads)
and future WSEndpoint.PipeHead.process(com.sun.xml.ws.api.message.Packet, com.sun.xml.ws.api.server.WebServiceContextDelegate, com.sun.xml.ws.api.server.TransportBackChannel) method invocations.
dispose in class WSEndpointpublic ServiceDefinition getServiceDefinition()
WSEndpointA description is a set of WSDL/schema and other documents that together describes a service. A service is not required to have a description, and when it doesn't, this method returns null.
getServiceDefinition in class WSEndpointpublic Set getComponentRegistry()
WSEndpointEndpointComponent that are associated
with this endpoint.
Components (such as codec, tube, handler, etc) who wish to provide
some service to other components in the endpoint can iterate the
registry and call its EndpointComponent.getSPI(Class) to
establish a private contract between components.
Components who wish to subscribe to such a service can add itself to this set.
getComponentRegistry in class WSEndpointpublic SEIModel getSEIModel()
WSEndpointSEIModel that represents the relationship
between WSDL and Java SEI.
This method returns a non-null value if and only if this endpoint is ultimately serving an application through an SEI.
getSEIModel in class WSEndpointpublic com.sun.xml.ws.policy.PolicyMap getPolicyMap()
WSEndpointgetPolicyMap in class WSEndpointpublic void closeManagedObjectManager()
WSEndpointcloseManagedObjectManager in class WSEndpointpublic ServerTubeAssemblerContext getAssemblerContext()
WSEndpointgetAssemblerContext in class WSEndpointpublic EndpointReference getEndpointReference(Class clazz, String address, String wsdlAddress, Element... referenceParameters)
WSEndpointgetEndpointReference in class WSEndpointclazz - represents spec versionaddress - endpoint addresswsdlAddress - wsdl addressreferenceParameters - any reference parameters to be added to the instancepublic EndpointReference getEndpointReference(Class clazz, String address, String wsdlAddress, List metadata, List referenceParameters)
getEndpointReference in class WSEndpointpublic OperationDispatcher getOperationDispatcher()
WSEndpointgetOperationDispatcher in class WSEndpointpublic org.glassfish.pfl.tf.timer.spi.ObjectRegistrationManager getObjectRegistrationManager()
getObjectRegistrationManager in interface org.glassfish.gmbal.ManagedObjectManagerpublic void addInheritedAnnotations(Class<?> clazz)
addInheritedAnnotations in interface org.glassfish.gmbal.ManagedObjectManagerCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.