com.sun.xml.ws.api.server

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jax ws runtime » com.sun.xml.ws.api.server 
com.sun.xml.ws.api.server
APIs for hosting JAX-WS services.
Java Source File NameTypeComment
AbstractServerAsyncTransport.javaClass Partial server side async transport implementation.
Adapter.javaClass Receives incoming messages from a transport (such as HTTP, JMS, etc) in a transport specific way, and delivers it to WSEndpoint.PipeHead.process .

Since this class mostly concerns itself with converting a transport-specific message representation to a Packet , the name is the "adapter".

The purpose of this class is twofolds:

  1. To hide the logic of converting a transport-specific connection to a Packet and do the other way around.
  2. To manage thread-unsafe resources, such as WSEndpoint.PipeHead , and Codec .

Adapter s are extended to work with each kind of transport, and therefore Adapter class itself is not all that useful by itself --- it merely provides a design template that can be followed.

For managing resources, an adapter uses an object called Toolkit (think of it as a tray full of tools that a dentist uses --- trays are identical, but each patient has to get one.

AsyncProvider.javaInterface Asynchronous version of Provider .

Applications that use the JAX-WS RI can implement this interface instead of Provider to implement asynchronous web services (AWS.) AWS enables applications to perform operations with long latency without blocking a thread, and thus particularly suitable for highly scalable service implementation, at the expesnce of implementation complexity.

AsyncProviderCallback.javaInterface Callback interface to signal JAX-WS RI that the processing of an asynchronous request is complete.
BoundEndpoint.javaInterface Represents the WSEndpoint bound to a particular transport.
Container.javaClass Root of the SPI implemented by the container (such as application server.)

Often technologies that are built on top of JAX-WS (such as Tango) needs to negotiate private contracts between them and the container.

ContainerResolver.javaClass This class determines an instance of Container for the runtime. It applies for both server and client runtimes(for e.g in Servlet could be accessing a Web Service).
DocumentAddressResolver.javaInterface Resolves relative references among SDDocument s.

This interface is implemented by the caller of SDDocument.writeTo method so that the SDDocument can correctly produce references to other documents.

This mechanism allows the user of WSEndpoint to assign logical URLs to each SDDocument (which is often necessarily done in a transport-dependent way), and then serve description documents.

Usage Example 1

HTTP servlet transport chose to expose those metadata documents to HTTP GET requests where each SDDocument is identified by a simple query string "?ID".

EndpointAwareCodec.javaInterface Implemented by Codec s that want to have access to WSEndpoint object.
EndpointComponent.javaInterface Interface that allows components around WSEndpoint to hook up with each other.
InstanceResolver.javaClass Determines the instance that serves the given request packet.

The JAX-WS spec always use a singleton instance to serve all the requests, but this hook provides a convenient way to route messages to a proper receiver.

Externally, an instance of InstanceResolver is associated with WSEndpoint .

Possible Uses

One can use WS-Addressing message properties to decide which instance to deliver a message.

InstanceResolverAnnotation.javaAnnotation Meta annotation for selecting instance resolver.

When service class is annotated with an annotation that has InstanceResolverAnnotation as meta annotation, the JAX-WS RI runtime will use the instance resolver class specified on InstanceResolverAnnotation.value() .

The InstanceResolver class must have the public constructor that takes Class , which represents the type of the service.

See Stateful for a real example.

Invoker.javaClass Hides the detail of calling into application endpoint implementation.
Module.javaClass Represents an object scoped to the current "module" (like a JavaEE web appliation).

This object can be obtained from Container.getSPI(Class) .

The scope of the module is driven by W3CEndpointReferenceBuilder.build 's requirement that we need to identify a WSEndpoint that has a specific service/port name.

For JavaEE containers this should be scoped to a JavaEE application.

package-info.java
PortAddressResolver.javaClass Resolves port address for an endpoint.
ResourceInjector.javaClass Represents a functionality of the container to inject resources to application service endpoint object (usually but not necessarily as per JavaEE spec.)

If Container.getSPI(Class) returns a valid instance of ResourceInjector , The JAX-WS RI will call the ResourceInjector.inject method for each service endpoint instance that it manages.

SDDocument.javaInterface Represents an individual document that forms a ServiceDefinition .
SDDocumentFilter.javaInterface Provides a way to filter SDDocument infoset while writing it.
SDDocumentSource.javaClass SPI that provides the source of SDDocument .

This abstract class could be implemented by appliations, or one of the SDDocumentSource.create methods can be used.

ServerPipelineHook.javaClass Allow the container (primarily Glassfish) to inject their own pipes into the pipeline.
ServiceDefinition.javaInterface Root of the unparsed WSDL and other resources referenced from it. This object represents the description of the service that a WSEndpoint offers.

A description consists of a set of SDDocument , which each represents a single XML document that forms a part of the descriptor (for example, WSDL might refer to separate schema documents, or a WSDL might refer to another WSDL.)

ServiceDefinition and its descendants are immutable read-only objects.

TransportBackChannel.javaInterface Represents a transport back-channel.
WebModule.javaClassModule that is an HTTP container.
WebServiceContextDelegate.javaInterface This object is set to Packet.webServiceContextDelegate to serve WebServiceContext methods for a Packet .

When the user application calls a method on WebServiceContext , the JAX-WS RI goes to the Packet that represents the request, then check Packet.webServiceContextDelegate , and forwards the method calls to WebServiceContextDelegate .

WSEndpoint.javaClass Root object that hosts the Packet processing code at the server.

One instance of WSEndpoint is created for each deployed service endpoint.

WSWebServiceContext.javaInterfaceWebServiceContext that exposes JAX-WS RI specific additions.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.