Package org.apache.sandesha2

Examples of org.apache.sandesha2.SandeshaException


        return acknowledgementInterval;
      } else if (parent!=null) {
        return parent.getAcknowledgementInterval();
      } else {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.policyHasNotBeenSet, Sandesha2Constants.Assertions.ELEM_ACK_INTERVAL);
        throw new SandeshaException (message);
      }
    }
View Full Code Here


        return useMessageSerialization;
      } else if (parent!=null) {
        return parent.isUseMessageSerialization();
      } else {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.policyHasNotBeenSet, Sandesha2Constants.Assertions.ELEM_USE_SERIALIZATION);
        throw new SandeshaException (message);
      }
  }
View Full Code Here

        return enforceRM;
      } else if (parent!=null) {
        return parent.isEnforceRM();
      } else {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.policyHasNotBeenSet, Sandesha2Constants.Assertions.ELEM_ENFORCE_RM);
        throw new SandeshaException (message);
      }
  }
View Full Code Here

      String securityManagerClassStr = properties
          .getProperty(Sandesha2Constants.Properties.SecurityManager);
      loadSecurityManagerClass(securityManagerClassStr,propertyBean);
    } catch (IOException e) {
      throw new SandeshaException(e);
    }

    return propertyBean;
  }
View Full Code Here

      return null; // no pilicy is available in the module description
    }
       
        Iterator iterator = policy.getAlternatives();
        if (! iterator.hasNext()) {
            throw new SandeshaException("No Policy Alternative found");
        }

        List assertionList = (List) iterator.next();
        Assertion assertion = null;
       
View Full Code Here

            return null; // no pilicy is available in the module description
        }
       
        Iterator iterator = policy.getAlternatives();
        if (! iterator.hasNext()) {
            throw new SandeshaException("No Policy Alternative found");
        }

        List assertionList = (List) iterator.next();
        Assertion assertion = null;
       
View Full Code Here

        if (retransmissionInterval > 0) {
          propertyBean.setRetransmissionInterval(retransmissionInterval);
        }
      } catch (NumberFormatException e) {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotDerriveRetransInterval);
        throw new SandeshaException(message, e);
      }
    }
  }
View Full Code Here

        if (acknowledgementInt > 0) {
          propertyBean.setAcknowledgementInterval(acknowledgementInt);
        }
      } catch (NumberFormatException e) {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotDerriveAckInterval);
        throw new SandeshaException(message, e);
      }
    }
  }
View Full Code Here

        if (inactivityTimeoutVal > 0) {
          propertyBean.setInactiveTimeoutInterval(inactivityTimeoutVal, inactivityTimeoutMeasure);
        }
      } catch (NumberFormatException e) {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotDerriveInactivityTimeout);
        throw new SandeshaException(message, e);
      }
    }
  }
View Full Code Here

        if (sequenceRemovalTimeoutVal > 0) {
          propertyBean.setSequenceRemovalTimeoutInterval(sequenceRemovalTimeoutVal, sequenceRemovalTimeoutMeasure);
        }
      } catch (NumberFormatException e) {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotDerriveInactivityTimeout);
        throw new SandeshaException(message, e);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.sandesha2.SandeshaException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.