|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.api.server.WSEndpoint
com.sun.xml.ws.server.WSEndpointMOMProxy
public class WSEndpointMOMProxy
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.xml.ws.api.server.WSEndpoint |
|---|
WSEndpoint.CompletionCallback, WSEndpoint.PipeHead |
| Nested classes/interfaces inherited from interface org.glassfish.gmbal.ManagedObjectManager |
|---|
org.glassfish.gmbal.ManagedObjectManager.RegistrationDebugLevel |
| Method Summary | |
|---|---|
void |
addAnnotation(java.lang.reflect.AnnotatedElement element,
java.lang.annotation.Annotation annotation)
|
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(java.lang.Object root)
|
org.glassfish.gmbal.GmbalMBean |
createRoot(java.lang.Object root,
java.lang.String name)
|
Packet |
createServiceResponseForException(ThrowableContainerPropertySet tc,
Packet responsePacket,
SOAPVersion soapVersion,
WSDLPort wsdlPort,
SEIModel seiModel,
WSBinding binding)
This is used by WsaServerTube and WSEndpointImpl to create a Packet with SOAPFault message from a Java exception. |
void |
dispose()
Indicates that the WSEndpoint is about to be turned off,
and will no longer serve any packet anymore. |
java.lang.String |
dumpSkeleton(java.lang.Object obj)
|
boolean |
equalsProxiedInstance(WSEndpoint endpoint)
Used for managed endpoints infrastructure to compare equality of proxies vs proxied endpoints. |
org.glassfish.gmbal.AMXClient |
getAMXClient(java.lang.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. |
java.util.Set |
getComponentRegistry()
Gets the list of EndpointComponent that are associated
with this endpoint. |
Container |
getContainer()
Gets the Container object. |
java.lang.String |
getDomain()
|
javax.xml.ws.EndpointReference |
getEndpointReference(java.lang.Class clazz,
java.lang.String address,
java.lang.String wsdlAddress,
org.w3c.dom.Element... referenceParameters)
Return EndpointReference instance, based on passed parameters and spec version represented by clazz |
javax.xml.ws.EndpointReference |
getEndpointReference(java.lang.Class clazz,
java.lang.String address,
java.lang.String wsdlAddress,
java.util.List metadata,
java.util.List referenceParameters)
|
java.lang.Class |
getImplementationClass()
Gets the application endpoint Class that eventually serves the request. |
org.glassfish.gmbal.ManagedObjectManager |
getManagedObjectManager()
Returns a real instance of ManagedObjectManager |
javax.management.MBeanServer |
getMBeanServer()
|
java.lang.Object |
getObject(javax.management.ObjectName oname)
|
javax.management.ObjectName |
getObjectName(java.lang.Object obj)
|
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. |
javax.xml.namespace.QName |
getPortName()
Gets the application endpoint's portName. |
java.util.ResourceBundle |
getResourceBundle()
|
java.lang.Object |
getRoot()
|
SEIModel |
getSEIModel()
Gets the SEIModel that represents the relationship
between WSDL and Java SEI. |
ServiceDefinition |
getServiceDefinition()
Gets the description of the service. |
javax.xml.namespace.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(java.lang.Object obj)
|
org.glassfish.gmbal.GmbalMBean |
register(java.lang.Object parent,
java.lang.Object obj)
|
org.glassfish.gmbal.GmbalMBean |
register(java.lang.Object parent,
java.lang.Object obj,
java.lang.String name)
|
org.glassfish.gmbal.GmbalMBean |
registerAtRoot(java.lang.Object obj)
|
org.glassfish.gmbal.GmbalMBean |
registerAtRoot(java.lang.Object obj,
java.lang.String name)
|
void |
resumeJMXRegistration()
|
void |
schedule(Packet request,
WSEndpoint.CompletionCallback callback,
FiberContextSwitchInterceptor interceptor)
Schedule invocation of web service asynchronously. |
void |
setExecutor(java.util.concurrent.Executor exec)
Set this Executor to run asynchronous requests using this executor. |
void |
setJMXRegistrationDebug(boolean flag)
|
void |
setMBeanServer(javax.management.MBeanServer server)
|
void |
setRegistrationDebug(org.glassfish.gmbal.ManagedObjectManager.RegistrationDebugLevel level)
|
void |
setResourceBundle(java.util.ResourceBundle rb)
|
void |
setRuntimeDebug(boolean flag)
|
void |
setTypelibDebug(int level)
|
void |
stripPackagePrefix()
|
void |
stripPrefix(java.lang.String... str)
|
void |
suppressDuplicateRootReport(boolean suppressReport)
|
void |
suspendJMXRegistration()
|
void |
unregister(java.lang.Object obj)
|
| Methods inherited from class com.sun.xml.ws.api.server.WSEndpoint |
|---|
create, create, create, create, getBoundEndpoints, getComponents, getDefaultPortName, getDefaultPortName, getDefaultPortName, getDefaultPortName, getDefaultServiceName, getDefaultServiceName, getDefaultServiceName, getDefaultServiceName, getEngine, getSPI, process, schedule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public org.glassfish.gmbal.ManagedObjectManager getManagedObjectManager()
ManagedObjectManager
getManagedObjectManager in class WSEndpointpublic 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(java.lang.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(java.lang.Object root)
createRoot in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean createRoot(java.lang.Object root,
java.lang.String name)
createRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic java.lang.Object getRoot()
getRoot in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean register(java.lang.Object parent,
java.lang.Object obj,
java.lang.String name)
register in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean register(java.lang.Object parent,
java.lang.Object obj)
register in interface org.glassfish.gmbal.ManagedObjectManager
public org.glassfish.gmbal.GmbalMBean registerAtRoot(java.lang.Object obj,
java.lang.String name)
registerAtRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.GmbalMBean registerAtRoot(java.lang.Object obj)
registerAtRoot in interface org.glassfish.gmbal.ManagedObjectManagerpublic void unregister(java.lang.Object obj)
unregister in interface org.glassfish.gmbal.ManagedObjectManagerpublic javax.management.ObjectName getObjectName(java.lang.Object obj)
getObjectName in interface org.glassfish.gmbal.ManagedObjectManagerpublic org.glassfish.gmbal.AMXClient getAMXClient(java.lang.Object obj)
getAMXClient in interface org.glassfish.gmbal.ManagedObjectManagerpublic java.lang.Object getObject(javax.management.ObjectName oname)
getObject in interface org.glassfish.gmbal.ManagedObjectManagerpublic void stripPrefix(java.lang.String... str)
stripPrefix in interface org.glassfish.gmbal.ManagedObjectManagerpublic void stripPackagePrefix()
stripPackagePrefix in interface org.glassfish.gmbal.ManagedObjectManagerpublic java.lang.String getDomain()
getDomain in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setMBeanServer(javax.management.MBeanServer server)
setMBeanServer in interface org.glassfish.gmbal.ManagedObjectManagerpublic javax.management.MBeanServer getMBeanServer()
getMBeanServer in interface org.glassfish.gmbal.ManagedObjectManagerpublic void setResourceBundle(java.util.ResourceBundle rb)
setResourceBundle in interface org.glassfish.gmbal.ManagedObjectManagerpublic java.util.ResourceBundle getResourceBundle()
getResourceBundle in interface org.glassfish.gmbal.ManagedObjectManager
public void addAnnotation(java.lang.reflect.AnnotatedElement element,
java.lang.annotation.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 java.lang.String dumpSkeleton(java.lang.Object obj)
dumpSkeleton in interface org.glassfish.gmbal.ManagedObjectManagerpublic void suppressDuplicateRootReport(boolean suppressReport)
suppressDuplicateRootReport in interface org.glassfish.gmbal.ManagedObjectManager
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOExceptionpublic boolean equalsProxiedInstance(WSEndpoint endpoint)
WSEndpoint
equalsProxiedInstance 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 javax.xml.namespace.QName getServiceName()
WSEndpoint
getServiceName in class WSEndpointpublic javax.xml.namespace.QName getPortName()
WSEndpoint
getPortName in class WSEndpointpublic java.lang.Class getImplementationClass()
WSEndpointClass that eventually serves the request.
This is the same value given to the WSEndpoint.create(java.lang.Class 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(java.util.concurrent.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 requests
public void schedule(Packet request,
WSEndpoint.CompletionCallback callback,
FiberContextSwitchInterceptor interceptor)
WSEndpoint
schedule 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 executionWSEndpoint.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 java.util.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()
WSEndpoint
getPolicyMap in class WSEndpointpublic void closeManagedObjectManager()
WSEndpoint
closeManagedObjectManager in class WSEndpointpublic ServerTubeAssemblerContext getAssemblerContext()
WSEndpoint
getAssemblerContext in class WSEndpoint
public javax.xml.ws.EndpointReference getEndpointReference(java.lang.Class clazz,
java.lang.String address,
java.lang.String wsdlAddress,
org.w3c.dom.Element... referenceParameters)
WSEndpoint
getEndpointReference in class WSEndpointclazz - represents spec versionaddress - endpoint addresswsdlAddress - wsdl addressreferenceParameters - any reference parameters to be added to the instance
public javax.xml.ws.EndpointReference getEndpointReference(java.lang.Class clazz,
java.lang.String address,
java.lang.String wsdlAddress,
java.util.List metadata,
java.util.List referenceParameters)
getEndpointReference in class WSEndpointpublic OperationDispatcher getOperationDispatcher()
WSEndpoint
getOperationDispatcher in class WSEndpoint
public Packet createServiceResponseForException(ThrowableContainerPropertySet tc,
Packet responsePacket,
SOAPVersion soapVersion,
WSDLPort wsdlPort,
SEIModel seiModel,
WSBinding binding)
WSEndpoint
createServiceResponseForException in class WSEndpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||