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
Message s. |
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, schedule
WSEndpointMOMProxy(@NotNull WSEndpointImpl wsEndpoint)
public org.glassfish.gmbal.ManagedObjectManager getManagedObjectManager()
ManagedObjectManager
getManagedObjectManager
in class WSEndpoint
void 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.ManagedObjectManager
public void resumeJMXRegistration()
resumeJMXRegistration
in interface org.glassfish.gmbal.ManagedObjectManager
public boolean isManagedObject(Object obj)
isManagedObject
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean createRoot()
createRoot
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean createRoot(Object root)
createRoot
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean createRoot(Object root, String name)
createRoot
in interface org.glassfish.gmbal.ManagedObjectManager
public Object getRoot()
getRoot
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean register(Object parent, Object obj, String name)
register
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean register(Object parent, Object obj)
register
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean registerAtRoot(Object obj, String name)
registerAtRoot
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean registerAtRoot(Object obj)
registerAtRoot
in interface org.glassfish.gmbal.ManagedObjectManager
public void unregister(Object obj)
unregister
in interface org.glassfish.gmbal.ManagedObjectManager
public ObjectName getObjectName(Object obj)
getObjectName
in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.AMXClient getAMXClient(Object obj)
getAMXClient
in interface org.glassfish.gmbal.ManagedObjectManager
public Object getObject(ObjectName oname)
getObject
in interface org.glassfish.gmbal.ManagedObjectManager
public void stripPrefix(String... str)
stripPrefix
in interface org.glassfish.gmbal.ManagedObjectManager
public void stripPackagePrefix()
stripPackagePrefix
in interface org.glassfish.gmbal.ManagedObjectManager
public String getDomain()
getDomain
in interface org.glassfish.gmbal.ManagedObjectManager
public void setMBeanServer(MBeanServer server)
setMBeanServer
in interface org.glassfish.gmbal.ManagedObjectManager
public MBeanServer getMBeanServer()
getMBeanServer
in interface org.glassfish.gmbal.ManagedObjectManager
public void setResourceBundle(ResourceBundle rb)
setResourceBundle
in interface org.glassfish.gmbal.ManagedObjectManager
public ResourceBundle getResourceBundle()
getResourceBundle
in interface org.glassfish.gmbal.ManagedObjectManager
public void addAnnotation(AnnotatedElement element, Annotation annotation)
addAnnotation
in interface org.glassfish.gmbal.ManagedObjectManager
public void setRegistrationDebug(org.glassfish.gmbal.ManagedObjectManager.RegistrationDebugLevel level)
setRegistrationDebug
in interface org.glassfish.gmbal.ManagedObjectManager
public void setRuntimeDebug(boolean flag)
setRuntimeDebug
in interface org.glassfish.gmbal.ManagedObjectManager
public void setTypelibDebug(int level)
setTypelibDebug
in interface org.glassfish.gmbal.ManagedObjectManager
public void setJMXRegistrationDebug(boolean flag)
setJMXRegistrationDebug
in interface org.glassfish.gmbal.ManagedObjectManager
public String dumpSkeleton(Object obj)
dumpSkeleton
in interface org.glassfish.gmbal.ManagedObjectManager
public void suppressDuplicateRootReport(boolean suppressReport)
suppressDuplicateRootReport
in interface org.glassfish.gmbal.ManagedObjectManager
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean equalsProxiedInstance(WSEndpoint endpoint)
WSEndpoint
equalsProxiedInstance
in class WSEndpoint
public Codec createCodec()
WSEndpoint
Message
s. 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 WSEndpoint
public QName getServiceName()
WSEndpoint
getServiceName
in class WSEndpoint
public QName getPortName()
WSEndpoint
getPortName
in class WSEndpoint
public Class getImplementationClass()
WSEndpoint
Class
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 WSEndpoint
public WSBinding getBinding()
WSEndpoint
WSEndpoint
is created for.getBinding
in class WSEndpoint
public Container getContainer()
WSEndpoint
Container
object.
The components inside WSEndpoint
uses this reference
to communicate with the hosting environment.
getContainer
in class WSEndpoint
Container
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 WSEndpoint
public void setExecutor(Executor exec)
WSEndpoint
Executor
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 WSEndpoint
exec
- Executor to run async requestspublic void schedule(Packet request, WSEndpoint.CompletionCallback callback, FiberContextSwitchInterceptor interceptor)
WSEndpoint
schedule
in class WSEndpoint
request
- 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()
WSEndpoint
WSEndpoint.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 WSEndpoint
WSEndpoint.PipeHead
that's ready to serve.public void dispose()
WSEndpoint
WSEndpoint
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 WSEndpoint
public ServiceDefinition getServiceDefinition()
WSEndpoint
A 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 WSEndpoint
public Set getComponentRegistry()
WSEndpoint
EndpointComponent
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 WSEndpoint
public SEIModel getSEIModel()
WSEndpoint
SEIModel
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 WSEndpoint
public com.sun.xml.ws.policy.PolicyMap getPolicyMap()
WSEndpoint
getPolicyMap
in class WSEndpoint
public void closeManagedObjectManager()
WSEndpoint
closeManagedObjectManager
in class WSEndpoint
public ServerTubeAssemblerContext getAssemblerContext()
WSEndpoint
getAssemblerContext
in class WSEndpoint
public EndpointReference getEndpointReference(Class clazz, String address, String wsdlAddress, Element... referenceParameters)
WSEndpoint
getEndpointReference
in class WSEndpoint
clazz
- 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 WSEndpoint
public OperationDispatcher getOperationDispatcher()
WSEndpoint
getOperationDispatcher
in class WSEndpoint
public org.glassfish.pfl.tf.timer.spi.ObjectRegistrationManager getObjectRegistrationManager()
getObjectRegistrationManager
in interface org.glassfish.gmbal.ManagedObjectManager
public void addInheritedAnnotations(Class<?> clazz)
addInheritedAnnotations
in interface org.glassfish.gmbal.ManagedObjectManager
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.