Methods Summary |
---|
void | addClientConfigToMap(java.lang.Object clientWsitConfigId, com.sun.xml.ws.policy.PolicyMap clientPolicyMap)
LOGGER.entering();
try {
for (PolicyMapKey key : clientPolicyMap.getAllServiceScopeKeys()) {
final Policy policy = clientPolicyMap.getServiceEffectivePolicy(key);
// setting subject to provided URL of client WSIT config
mapExtender.putServiceSubject(key, new PolicySubject(clientWsitConfigId, policy));
}
for (PolicyMapKey key : clientPolicyMap.getAllEndpointScopeKeys()) {
final Policy policy = clientPolicyMap.getEndpointEffectivePolicy(key);
// setting subject to provided URL of client WSIT config
mapExtender.putEndpointSubject(key, new PolicySubject(clientWsitConfigId, policy));
}
for (PolicyMapKey key : clientPolicyMap.getAllOperationScopeKeys()) {
final Policy policy = clientPolicyMap.getOperationEffectivePolicy(key);
// setting subject to provided URL of client WSIT config
mapExtender.putOperationSubject(key, new PolicySubject(clientWsitConfigId, policy));
}
for (PolicyMapKey key : clientPolicyMap.getAllInputMessageScopeKeys()) {
final Policy policy = clientPolicyMap.getInputMessageEffectivePolicy(key);
// setting subject to provided URL of client WSIT config
mapExtender.putInputMessageSubject(key, new PolicySubject(clientWsitConfigId, policy));
}
for (PolicyMapKey key : clientPolicyMap.getAllOutputMessageScopeKeys()) {
final Policy policy = clientPolicyMap.getOutputMessageEffectivePolicy(key);
// setting subject to provided URL of client WSIT config
mapExtender.putOutputMessageSubject(key, new PolicySubject(clientWsitConfigId, policy));
}
for (PolicyMapKey key : clientPolicyMap.getAllFaultMessageScopeKeys()) {
final Policy policy = clientPolicyMap.getFaultMessageEffectivePolicy(key);
// setting subject to provided URL of client WSIT config
mapExtender.putFaultMessageSubject(key, new PolicySubject(clientWsitConfigId, policy));
}
LOGGER.fine(LocalizationMessages.WSP_1041_CLIENT_CFG_POLICIES_TRANSFERED_INTO_FINAL_POLICY_MAP(policyMap));
} catch (FactoryConfigurationError ex) {
throw LOGGER.logSevereException(new PolicyException(ex));
}
LOGGER.exiting();
|
void | configureModel(com.sun.xml.ws.api.model.wsdl.WSDLModel model)
try {
for (ModelConfiguratorProvider configurator : configurators) {
configurator.configure(model, policyMap);
}
} catch (PolicyException e) {
throw LOGGER.logSevereException(new WebServiceException(LocalizationMessages.WSP_1032_FAILED_CONFIGURE_WSDL_MODEL(), e));
}
|
public void | doAlternativeSelection()
EffectiveAlternativeSelector.doSelection(mapModifier);
|
public javax.xml.namespace.QName | getName()
return NAME;
|
public com.sun.xml.ws.policy.PolicyMap | getPolicyMap()
return policyMap;
|
void | putEndpointSubject(com.sun.xml.ws.policy.PolicyMapKey key, com.sun.xml.ws.policy.PolicySubject subject)
if (null != this.mapExtender) {
this.mapExtender.putEndpointSubject(key, subject);
}
|
void | putFaultMessageSubject(com.sun.xml.ws.policy.PolicyMapKey key, com.sun.xml.ws.policy.PolicySubject subject)
if (null != this.mapExtender) {
this.mapExtender.putFaultMessageSubject(key, subject);
}
|
void | putInputMessageSubject(com.sun.xml.ws.policy.PolicyMapKey key, com.sun.xml.ws.policy.PolicySubject subject)
if (null != this.mapExtender) {
this.mapExtender.putInputMessageSubject(key, subject);
}
|
void | putOperationSubject(com.sun.xml.ws.policy.PolicyMapKey key, com.sun.xml.ws.policy.PolicySubject subject)
if (null != this.mapExtender) {
this.mapExtender.putOperationSubject(key, subject);
}
|
void | putOutputMessageSubject(com.sun.xml.ws.policy.PolicyMapKey key, com.sun.xml.ws.policy.PolicySubject subject)
if (null != this.mapExtender) {
this.mapExtender.putOutputMessageSubject(key, subject);
}
|
void | putServiceSubject(com.sun.xml.ws.policy.PolicyMapKey key, com.sun.xml.ws.policy.PolicySubject subject)
if (null != this.mapExtender) {
this.mapExtender.putServiceSubject(key, subject);
}
|
void | validateServerSidePolicies()
final AssertionValidationProcessor validationProcessor = AssertionValidationProcessor.getInstance();
for (Policy policy : policyMap) {
// TODO: here is a good place to check if the actual policy has only one alternative...
for (AssertionSet assertionSet : policy) {
for (PolicyAssertion assertion : assertionSet) {
PolicyAssertionValidator.Fitness validationResult = validationProcessor.validateServerSide(assertion);
if (validationResult != PolicyAssertionValidator.Fitness.SUPPORTED) {
throw LOGGER.logSevereException(new PolicyException(LocalizationMessages.WSP_1046_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(
assertion.getName(),
validationResult)));
}
}
}
}
|