public static void enforceProcessingRules(Message message,String requestMessageID,boolean isServer) throws SOAPBindingException, SOAPFaultException {
  CorrelationHeader corrH=message.getCorrelationHeader();
  String messageID=corrH.getMessageID();
  checkCorrelationHeader(corrH,requestMessageID,isServer);
  checkProviderHeader(message.getProviderHeader(),messageID,isServer);
  checkProcessingContextHeader(message.getProcessingContextHeader(),messageID,isServer);
  checkConsentHeader(message.getConsentHeader(),messageID,isServer);
  List usagHs=message.getUsageDirectiveHeaders();
  if (usagHs != null && !usagHs.isEmpty()) {
    Iterator iter=usagHs.iterator();
    while (iter.hasNext()) {
      UsageDirectiveHeader usagH=(UsageDirectiveHeader)iter.next();
      checkUsageDirectiveHeader(usagH,messageID,isServer);
    }
  }
}

public static void enforceProcessingRules ( Message message , String requestMessageID , boolean isServer ) throws SOAPBindingException , SOAPFaultException { CorrelationHeader corrH = message . getCorrelationHeader ( ) ; String messageID = corrH . getMessageID ( ) ; checkCorrelationHeader ( corrH , requestMessageID , isServer ) ; checkProviderHeader ( message . getProviderHeader ( ) , messageID , isServer ) ; checkProcessingContextHeader ( message . getProcessingContextHeader ( ) , messageID , isServer ) ; checkConsentHeader ( message . getConsentHeader ( ) , messageID , isServer ) ; List usagHs = message . getUsageDirectiveHeaders ( ) ; if ( usagHs != null && ! usagHs . isEmpty ( ) ) { Iterator iter = usagHs . iterator ( ) ; while ( iter . hasNext ( ) ) { UsageDirectiveHeader usagH = ( UsageDirectiveHeader ) iter . next ( ) ; checkUsageDirectiveHeader ( usagH , messageID , isServer ) ; } } }
enforces message processiong rules defined in the spec .
