throw new MessageException(
LOCALIZER.format(messageKey, messageParam));
}
// Read the response header
Header idHeader = method.getResponseHeader(
MessageStoreServlet.MESSAGE_RESPONSE_HEADER_NAME);
// Check for a null value which indicates that the header was
// not set for some reason
if (idHeader == null) {
final String messageKey =
"message-id-missing-url-construction-failed";
LOGGER.error(messageKey);
throw new MessageException(
LOCALIZER.format(messageKey));
}
id = idHeader.getValue();
// And finally construct the URL to return, encoding the ? and
// = as this is required by the NowSMS gateway BUT the whole
// URL cannot be encoded as the / should not be encoded!
// Rest of URL to return was created above