/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: PLLNotificationServlet.java,v 1.6 2008/08/19 19:08:43 veiming Exp $
*
* Portions Copyrighted 2011-2014 ForgeRock AS.
*/
/**
*
* The <code>PLLNotificationServlet</code> class is used to receive
* notifications from servers and forward those notifications to the high level
* services and applications for processing.
* </p>
* The doPost() method gets the XML NotificationSet document from the
* HttpRequest object, then parses the XML documnent and reconstructs a
* NotificationSet object.
*
* @see com.iplanet.services.comm.share.Notification
* @see com.iplanet.services.comm.share.NotificationSet
*/
}
/*
* Accepts POST requests, reads Inpt Stream, forwards the NotificationSet
* XML Flushes the ResponseSet XML to OutputStream @param
* HttpServletNotification Reference to HttpServletNotification object
* @param HttpServletResponse Reference to HttpServletResponse object
*
* @see javax.servlet.http.HttpServlet
*/
// Check content length
try {
} catch (L10NMessageImpl e) {
}
if (length == -1) {
}
int rlength = 0;
int offset = 0;
if (r == -1) {
throw new ServletException(PLLBundle
.getString("readRequestError"));
}
rlength += r;
offset += r;
}
try {
try {
} catch (ServletException e) {
}
} finally {
}
}
}
}
/*
* This method is used by doPost method. It gets the corresponding notification handler and passes the Notification
* objects to it for processing.
*
* @param notificationXML The XML String for the NotificationSet object.
*/
throws ServletException {
if (!notifications.isEmpty()) {
// Each notification in this set shall have the same service id
if (notificationHandler == null) {
}
}
}
}