Java Doc for PolicyAssertionCreator.java in  » 6.0-JDK-Modules-com.sun » wsit » com » sun » xml » ws » policy » spi » 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 com.sun » wsit » com.sun.xml.ws.policy.spi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.xml.ws.policy.spi.PolicyAssertionCreator

All known Subclasses:   com.sun.xml.ws.security.impl.policy.SecurityPolicyAssertionCreator,  com.sun.xml.ws.policy.sourcemodel.DefaultPolicyAssertionCreator,
PolicyAssertionCreator
public interface PolicyAssertionCreator (Code)
The interface defines contract for custom (domain specific) policy assertion factories. The implementations are discovered using service provider mechanism described in the J2SE JAR File Specification.

Every implementation of policy assertion creator is expected to fully handle the creation of assertions for the domain (namespace) it claims to support by returning the namespace string from the {link #getSupportedDomainNamespaceUri()} method. To handle creation of domain-specific assertions that are not intended to be customized, the default policy assertion creator (passed as one of the input parameters into the PolicyAssertionCreator.createAssertion(AssertionData,Collection,AssertionSet,PolicyAssertionCreator) method) shall be used.
author:
   Marek Potociar





Method Summary
 PolicyAssertioncreateAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters, AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator)
     Creates domain-specific policy assertion instance according to assertion data provided.
 String[]getSupportedDomainNamespaceURIs()
     This method returns the namespace URIs of the domains that are supported by the implementation of this inteface.



Method Detail
createAssertion
PolicyAssertion createAssertion(AssertionData data, Collection<PolicyAssertion> assertionParameters, AssertionSet nestedAlternative, PolicyAssertionCreator defaultCreator) throws AssertionCreationException(Code)
Creates domain-specific policy assertion instance according to assertion data provided. For the provided assertion data and this policy assertion creator instance, it will allways be true that assertion namespace URI equals to one of supported domain namespace URIs.

Additional method parameter (which must not be null ) supplied by the policy framework specifies a default policy assertion creator that might be used to handle creation of unsupported domain assertion in the default way. This is to give policy assertion creator a chance to handle also creation of "unsupported" domain assertions and to encourage implemetors to use class composition instad of class inheritance.
Parameters:
  data - assertion creation data specifying the details of newly created assertion
Parameters:
  assertionParameters - collection of assertions parameters of this policy assertion. May be null .
Parameters:
  nestedAlternative - assertion set specifying nested policy alternative. May be null .
Parameters:
  defaultCreator - default policy assertion creator implementation that shall be used to handle creation of assertionswhich are not explicitly supported by this policy assertion creator implementation domain specific policy assertion implementation according to assertion data provided.
throws:
  AssertionCreationException - in case of assertion creation failure




getSupportedDomainNamespaceURIs
String[] getSupportedDomainNamespaceURIs()(Code)
This method returns the namespace URIs of the domains that are supported by the implementation of this inteface. There can be multiple URIs supported per single implementation.

Supporting domain namespace URI means that particular PolicyAssertionCreator implementation is able to create assertion instances for the domains identified by the namespace URIs returned from this method. It is required that each PolicyAssertionCreator implementation handles the policy assertion creation for each assertion in every domain it claims to support. string array representing the namespace URIs of the supported domains. It is expected that multiple calls on this method return the same value each time. Returned string array must be neither null nor empty. Also each string value in the array must not be null nor empty.




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