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


java.lang.Object
   com.sun.xml.ws.policy.PolicyMap

PolicyMap
final public class PolicyMap implements Iterable<Policy>(Code)
A PolicyMap holds all policies for a scope. This map is modeled around WSDL 1.1 policy scopes according to WS-PolicyAttachment. The map holds an information about every scope for service, endpoint, operation, and input/output/fault message. It also provide accessibility methods for computing and obtaining effective policy on each scope. TODO: rename createWsdlMessageScopeKey to createWsdlInputOutputMessageScopeKey

Inner Class :static enum ScopeType



Method Summary
public static  PolicyMapcreatePolicyMap(Collection<? extends PolicyMapMutator> mutators)
     Creates new policy map instance and connects provided collection of policy map mutators to the created policy map.
Parameters:
  mutators - collection of mutators that should be connected to the newly created map.
public static  PolicyMapKeycreateWsdlEndpointScopeKey(QName service, QName port)
     Creates an endpoint policy scope locator object, that serves as a access key into a PolicyMap where actual endpoint policy scope for given endpoint can be retrieved.
Parameters:
  service - qualified name of the service.
public static  PolicyMapKeycreateWsdlFaultMessageScopeKey(QName service, QName port, QName operation, QName fault)
     Creates a fault message policy scope locator object identified by a bound operation, that serves as a access key into PolicyMap where the actual fault message policy scope for one of the faults of a bound operation can be retrieved.

The method returns a key that is compliant with the WSDL 1.1 Basic Profile Specification, according to which there should be no two operations with the same name in a single port type definition.
Parameters:
  service - qualified name of the service.

public static  PolicyMapKeycreateWsdlMessageScopeKey(QName service, QName port, QName operation)
     Creates an input/output message policy scope locator object identified by a bound operation, that serves as a access key into PolicyMap where actual input/output message policy scope for given input message of a bound operation can be retrieved.

The method returns a key that is compliant with WSDL 1.1 Basic Profile Specification, according to which there should be no two operations with the same name in a single port type definition.
Parameters:
  service - qualified name of the service.

public static  PolicyMapKeycreateWsdlOperationScopeKey(QName service, QName port, QName operation)
     Creates an operation policy scope locator object, that serves as a access key into a PolicyMap where actual operation policy scope for given bound operation can be retrieved.
Parameters:
  service - qualified name of the service.
public static  PolicyMapKeycreateWsdlServiceScopeKey(QName service)
     Creates a service policy scope locator object, that serves as a access key into a PolicyMap where actual service policy scope for given service can be retrieved.
Parameters:
  service - qualified name of the service.
public  Collection<PolicyMapKey>getAllEndpointScopeKeys()
    
public  Collection<PolicyMapKey>getAllFaultMessageScopeKeys()
    
public  Collection<PolicyMapKey>getAllInputMessageScopeKeys()
    
public  Collection<PolicyMapKey>getAllOperationScopeKeys()
    
public  Collection<PolicyMapKey>getAllOutputMessageScopeKeys()
    
public  Collection<PolicyMapKey>getAllServiceScopeKeys()
    
public  PolicygetEndpointEffectivePolicy(PolicyMapKey key)
    
public  PolicygetEndpointEffectivePolicy(PolicyMapKey key, Collection<String> namespaces)
    
public  PolicygetFaultMessageEffectivePolicy(PolicyMapKey key)
    
public  PolicygetFaultMessageEffectivePolicy(PolicyMapKey key, Collection<String> namespaces)
    
public  PolicygetInputMessageEffectivePolicy(PolicyMapKey key)
    
public  PolicygetInputMessageEffectivePolicy(PolicyMapKey key, Collection<String> namespaces)
    
public  PolicygetOperationEffectivePolicy(PolicyMapKey key)
    
public  PolicygetOperationEffectivePolicy(PolicyMapKey key, Collection<String> namespaces)
    
public  PolicygetOutputMessageEffectivePolicy(PolicyMapKey key)
    
public  PolicygetOutputMessageEffectivePolicy(PolicyMapKey key, Collection<String> namespaces)
    
public  Collection<PolicySubject>getPolicySubjects()
     Returns all policy subjects contained by this map.
public  PolicygetServiceEffectivePolicy(PolicyMapKey key)
    
public  PolicygetServiceEffectivePolicy(PolicyMapKey key, Collection<String> namespaces)
    
public  booleanisEmpty()
     Returns true if this map contains no key - policy pairs A null object key or policy constitutes a non-empty map.
public  booleanisFaultMessageSubject(PolicySubject subject)
    
public  booleanisInputMessageSubject(PolicySubject subject)
    
public  booleanisOutputMessageSubject(PolicySubject subject)
    
public  Iterator<Policy>iterator()
    
 voidputSubject(ScopeType scopeType, PolicyMapKey key, PolicySubject subject)
     Places new subject into policy map under the scope identified by it's type and policy map key.
 voidsetNewEffectivePolicyForScope(ScopeType scopeType, PolicyMapKey key, Policy newEffectivePolicy)
     Replaces current effective policy on given scope (identified by a key parameter) with the new efective policy provided as a second input parameter.
public  StringtoString()
    



Method Detail
createPolicyMap
public static PolicyMap createPolicyMap(Collection<? extends PolicyMapMutator> mutators)(Code)
Creates new policy map instance and connects provided collection of policy map mutators to the created policy map.
Parameters:
  mutators - collection of mutators that should be connected to the newly created map. new policy map instance (mutable via provided collection of mutators).



createWsdlEndpointScopeKey
public static PolicyMapKey createWsdlEndpointScopeKey(QName service, QName port) throws IllegalArgumentException(Code)
Creates an endpoint policy scope locator object, that serves as a access key into a PolicyMap where actual endpoint policy scope for given endpoint can be retrieved.
Parameters:
  service - qualified name of the service. Must not be null .
Parameters:
  port - qualified name of the endpoint. Must not be null .
throws:
  IllegalArgumentException - in case service, port or operation parameter is null .



createWsdlFaultMessageScopeKey
public static PolicyMapKey createWsdlFaultMessageScopeKey(QName service, QName port, QName operation, QName fault) throws IllegalArgumentException(Code)
Creates a fault message policy scope locator object identified by a bound operation, that serves as a access key into PolicyMap where the actual fault message policy scope for one of the faults of a bound operation can be retrieved.

The method returns a key that is compliant with the WSDL 1.1 Basic Profile Specification, according to which there should be no two operations with the same name in a single port type definition.
Parameters:
  service - qualified name of the service. Must not be null .
Parameters:
  port - qualified name of the endpoint. Must not be null .
Parameters:
  operation - qualified name of the operation. Must not be null .
Parameters:
  fault - qualified name of the fault. Do not confuse this with the name of the actual message. This parametertakes the wsdl:binding/wsdl:operation/wsdl:fault name and not the wsdl:message name. Must not be null .
throws:
  IllegalArgumentException - in case service, port or operation parameter is null .




createWsdlMessageScopeKey
public static PolicyMapKey createWsdlMessageScopeKey(QName service, QName port, QName operation) throws IllegalArgumentException(Code)
Creates an input/output message policy scope locator object identified by a bound operation, that serves as a access key into PolicyMap where actual input/output message policy scope for given input message of a bound operation can be retrieved.

The method returns a key that is compliant with WSDL 1.1 Basic Profile Specification, according to which there should be no two operations with the same name in a single port type definition.
Parameters:
  service - qualified name of the service. Must not be null .
Parameters:
  port - qualified name of the endpoint. Must not be null .
Parameters:
  operation - qualified name of the operation. Must not be null .
throws:
  IllegalArgumentException - in case service, port or operation parameter is null .




createWsdlOperationScopeKey
public static PolicyMapKey createWsdlOperationScopeKey(QName service, QName port, QName operation) throws IllegalArgumentException(Code)
Creates an operation policy scope locator object, that serves as a access key into a PolicyMap where actual operation policy scope for given bound operation can be retrieved.
Parameters:
  service - qualified name of the service. Must not be null .
Parameters:
  port - qualified name of the endpoint. Must not be null .
Parameters:
  operation - qualified name of the operation. Must not be null .
throws:
  IllegalArgumentException - in case service, port or operation parameter is null .



createWsdlServiceScopeKey
public static PolicyMapKey createWsdlServiceScopeKey(QName service) throws IllegalArgumentException(Code)
Creates a service policy scope locator object, that serves as a access key into a PolicyMap where actual service policy scope for given service can be retrieved.
Parameters:
  service - qualified name of the service. Must not be null .
throws:
  IllegalArgumentException - in case service, port or operation parameter is null .



getAllEndpointScopeKeys
public Collection<PolicyMapKey> getAllEndpointScopeKeys()(Code)
Returns all endpoint scope keys stored in this policy map collection of endpoint scope policy map keys stored in the map.



getAllFaultMessageScopeKeys
public Collection<PolicyMapKey> getAllFaultMessageScopeKeys()(Code)
Returns all fault message scope keys stored in this policy map collection of input message scope policy map keys stored in the map.



getAllInputMessageScopeKeys
public Collection<PolicyMapKey> getAllInputMessageScopeKeys()(Code)
Returns all input message scope keys stored in this policy map collection of input message scope policy map keys stored in the map.



getAllOperationScopeKeys
public Collection<PolicyMapKey> getAllOperationScopeKeys()(Code)
Returns all operation scope keys stored in this policy map collection of operation scope policy map keys stored in the map.



getAllOutputMessageScopeKeys
public Collection<PolicyMapKey> getAllOutputMessageScopeKeys()(Code)
Returns all output message scope keys stored in this policy map collection of output message scope policy map keys stored in the map.



getAllServiceScopeKeys
public Collection<PolicyMapKey> getAllServiceScopeKeys()(Code)
Returns all service scope keys stored in this policy map collection of service scope policy map keys stored in the map.



getEndpointEffectivePolicy
public Policy getEndpointEffectivePolicy(PolicyMapKey key) throws PolicyException(Code)



getEndpointEffectivePolicy
public Policy getEndpointEffectivePolicy(PolicyMapKey key, Collection<String> namespaces) throws PolicyException(Code)



getFaultMessageEffectivePolicy
public Policy getFaultMessageEffectivePolicy(PolicyMapKey key) throws PolicyException(Code)



getFaultMessageEffectivePolicy
public Policy getFaultMessageEffectivePolicy(PolicyMapKey key, Collection<String> namespaces) throws PolicyException(Code)



getInputMessageEffectivePolicy
public Policy getInputMessageEffectivePolicy(PolicyMapKey key) throws PolicyException(Code)



getInputMessageEffectivePolicy
public Policy getInputMessageEffectivePolicy(PolicyMapKey key, Collection<String> namespaces) throws PolicyException(Code)



getOperationEffectivePolicy
public Policy getOperationEffectivePolicy(PolicyMapKey key) throws PolicyException(Code)



getOperationEffectivePolicy
public Policy getOperationEffectivePolicy(PolicyMapKey key, Collection<String> namespaces) throws PolicyException(Code)



getOutputMessageEffectivePolicy
public Policy getOutputMessageEffectivePolicy(PolicyMapKey key) throws PolicyException(Code)



getOutputMessageEffectivePolicy
public Policy getOutputMessageEffectivePolicy(PolicyMapKey key, Collection<String> namespaces) throws PolicyException(Code)



getPolicySubjects
public Collection<PolicySubject> getPolicySubjects()(Code)
Returns all policy subjects contained by this map. All policy subjects contained by this map



getServiceEffectivePolicy
public Policy getServiceEffectivePolicy(PolicyMapKey key) throws PolicyException(Code)



getServiceEffectivePolicy
public Policy getServiceEffectivePolicy(PolicyMapKey key, Collection<String> namespaces) throws PolicyException(Code)



isEmpty
public boolean isEmpty()(Code)
Returns true if this map contains no key - policy pairs A null object key or policy constitutes a non-empty map. true if this map contains no key - policy pairs



isFaultMessageSubject
public boolean isFaultMessageSubject(PolicySubject subject)(Code)



isInputMessageSubject
public boolean isInputMessageSubject(PolicySubject subject)(Code)



isOutputMessageSubject
public boolean isOutputMessageSubject(PolicySubject subject)(Code)



iterator
public Iterator<Policy> iterator()(Code)



putSubject
void putSubject(ScopeType scopeType, PolicyMapKey key, PolicySubject subject)(Code)
Places new subject into policy map under the scope identified by it's type and policy map key.
Parameters:
  scopeType - the type of the scope the subject belongs to
Parameters:
  key - a policy map key to be used to store the subject
Parameters:
  subject - actual policy subject to be stored in the policy map



setNewEffectivePolicyForScope
void setNewEffectivePolicyForScope(ScopeType scopeType, PolicyMapKey key, Policy newEffectivePolicy) throws IllegalArgumentException(Code)
Replaces current effective policy on given scope (identified by a key parameter) with the new efective policy provided as a second input parameter. If no policy was defined for the presented key, the new policy is simply stored with the key.
Parameters:
  scopeType - the type of the scope the subject belongs to. Must not be null .
Parameters:
  key - identifier of the scope the effective policy should be replaced with the new one. Must not be null .
Parameters:
  newEffectivePolicy - the new policy to replace the old effective policy of the scope. Must not be null . null



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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