com.sun.xml.ws.api.policy
Interface PolicyResolver

All Known Implementing Classes:
DefaultPolicyResolver

public interface PolicyResolver

PolicyResolver will be used to resolve the PolicyMap created by configuration understood by JAX-WS. Extensions of this can return effective PolicyMap after merge policies from other configurations.


Nested Class Summary
static class PolicyResolver.ClientContext
           
static class PolicyResolver.ServerContext
           
 
Method Summary
 com.sun.xml.ws.policy.PolicyMap resolve(PolicyResolver.ClientContext context)
          Creates a PolicyResolver
 com.sun.xml.ws.policy.PolicyMap resolve(PolicyResolver.ServerContext context)
          Creates a PolicyResolver
 

Method Detail

resolve

com.sun.xml.ws.policy.PolicyMap resolve(PolicyResolver.ServerContext context)
                                        throws WebServiceException
Creates a PolicyResolver

Parameters:
context - ServerContext that captures information useful for resolving Policy on server-side
Returns:
A PolicyMap with single policy alternative that gets created after consulting various configuration models.
Throws:
WebServiceException - If resolution failed

resolve

com.sun.xml.ws.policy.PolicyMap resolve(PolicyResolver.ClientContext context)
                                        throws WebServiceException
Creates a PolicyResolver

Parameters:
context - ServerContext that captures information useful for resolving Policy on client-side
Returns:
A PolicyMap with single policy alternative that gets created after consulting various configuration models.
Throws:
WebServiceException - If resolution failed


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.