/** * Get subscription request (query request) core. * * @param subscription */ private void getSubscriptionStatusRequest(Subscription subscription) { BasicXmlDocument document = new BasicXmlDocument(); document.parseString( "<" + TransactionType.GET_SUBSCRIPTION_STATUS.getValue() + " xmlns = \"" + XML_NAMESPACE + "\" />"); addAuthentication(document); addRefId(document); addSubscriptionIdToRequest(document, subscription); currentRequest = document; }
/** * Update subscription request core. * * @param subscription */ private void updateSubscriptionRequest(Subscription subscription) { BasicXmlDocument document = new BasicXmlDocument(); document.parseString( "<" + TransactionType.UPDATE_SUBSCRIPTION.getValue() + " xmlns = \"" + XML_NAMESPACE + "\" />"); addAuthentication(document); addRefId(document); addSubscriptionToRequest(document, subscription); currentRequest = document; }