Java Doc for WebServiceContextDelegate.java in  » 6.0-JDK-Modules » jax-ws-runtime » com » sun » xml » ws » api » server » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.xml.ws.api.server.WebServiceContextDelegate

All known Subclasses:   com.sun.xml.ws.transport.http.servlet.ServletConnectionImpl,  com.sun.xml.ws.transport.http.server.ServerConnectionImpl,  com.sun.xml.ws.transport.local.LocalConnectionImpl,
WebServiceContextDelegate
public interface WebServiceContextDelegate (Code)
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 .

All the methods defined on this interface takes Packet (whose Packet.webServiceContextDelegate points to this object), so that a single stateless WebServiceContextDelegate can be used to serve multiple concurrent Packet s, if the implementation wishes to do so.

(It is also allowed to create one instance of WebServiceContextDelegate for each packet, and thus effectively ignore the packet parameter.)

Attaching this on a Packet allows Pipe s to intercept and replace them, if they wish.
author:
   Kohsuke Kawaguchi





Method Summary
 StringgetEPRAddress(Packet request, WSEndpoint endpoint)
     Gets the address of the endpoint.

The "address" of endpoints is always affected by a particular client being served, hence it's up to transport to provide this information.
Parameters:
  request - Always non-null.

 PrincipalgetUserPrincipal(Packet request)
     Implements WebServiceContext.getUserPrincipal for the given packet.
Parameters:
  request - Always non-null.
 StringgetWSDLAddress(Packet request, WSEndpoint endpoint)
     Gets the address of the primary WSDL.

If a transport supports publishing of WSDL by itself (instead/in addition to MEX), then it should implement this method so that the rest of the JAX-WS RI can use that information. For example, HTTP transports often use the convention getEPRAddress()+"?wsdl" for publishing WSDL on HTTP.

Some transports may not have such WSDL publishing mechanism on its own. Those transports may choose to return null, indicating that WSDL is not published.

 booleanisUserInRole(Packet request, String role)
     Implements WebServiceContext.isUserInRole(String) for the given packet.
Parameters:
  request - Always non-null.



Method Detail
getEPRAddress
String getEPRAddress(Packet request, WSEndpoint endpoint)(Code)
Gets the address of the endpoint.

The "address" of endpoints is always affected by a particular client being served, hence it's up to transport to provide this information.
Parameters:
  request - Always non-null. See class javadoc.
Parameters:
  endpoint - The endpoint whose address will be returned.
throws:
  WebServiceException - if this method could not compute the address for some reason.Absolute URL of the endpoint. This shold be an address that the clientcan use to talk back to this same service later.
See Also:   WebServiceContext.getEndpointReference




getUserPrincipal
Principal getUserPrincipal(Packet request)(Code)
Implements WebServiceContext.getUserPrincipal for the given packet.
Parameters:
  request - Always non-null. See class javadoc.
See Also:   WebServiceContext.getUserPrincipal



getWSDLAddress
String getWSDLAddress(Packet request, WSEndpoint endpoint)(Code)
Gets the address of the primary WSDL.

If a transport supports publishing of WSDL by itself (instead/in addition to MEX), then it should implement this method so that the rest of the JAX-WS RI can use that information. For example, HTTP transports often use the convention getEPRAddress()+"?wsdl" for publishing WSDL on HTTP.

Some transports may not have such WSDL publishing mechanism on its own. Those transports may choose to return null, indicating that WSDL is not published. If such transports are always used in conjunction with other transports that support WSDL publishing (such as SOAP/TCP used with Servlet transport), then such transport may choose to find the corresponding servlet endpoint by Module.getBoundEndpoints and try to obtain the address from there.

This information is used to put a metadata reference inside an EPR, among other things. Clients that do not support MEX rely on this WSDL URL to retrieve metadata, it is desirable for transports to support this, but not mandatory.

This method will be never invoked if the WSEndpoint does not have a corresponding WSDL to begin with (IOW WSEndpoint.getServiceDefinition returning null .
Parameters:
  request - Always non-null. See class javadoc.
Parameters:
  endpoint - The endpoint whose address will be returned.null if the implementation does not support the notion ofWSDL publishing.




isUserInRole
boolean isUserInRole(Packet request, String role)(Code)
Implements WebServiceContext.isUserInRole(String) for the given packet.
Parameters:
  request - Always non-null. See class javadoc.
See Also:   WebServiceContext.isUserInRole(String)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.