org.systinet.wasp.policy
Interface DomainExpression

All Known Implementing Classes:
DefaultDomainExpression, EndpointReference, ServiceEndpointReference

public interface DomainExpression

This interface represents a policy domain expression according to the WS-PolicyAtachment. An object that wants to be a domain expression must implement this interface. An implementation of this interface must have public constructor with one parameter Source in order to WSO2 SOA Enablement Server could load it from persistent configuration.

A policy can be attached to the given domain expression with the help of PolicyManager.

Since:
5.0
Component:
Core

Method Summary
 javax.xml.transform.Source getContent()
          Gets the content of this object as Source
 boolean includes(DomainExpression domainExpression)
          Gets true if this domain expression includes the given one; false otherwise.
 

Method Detail

getContent

public javax.xml.transform.Source getContent()
                                      throws PolicyException
Gets the content of this object as Source

Returns:
the content of this object as Source
Throws:
PolicyException - when an error occurs

includes

public boolean includes(DomainExpression domainExpression)
Gets true if this domain expression includes the given one; false otherwise.

Parameters:
domainExpression - domain expression to check
Returns:
true if this domain expression includes the given one; false otherwise.