LogService.java revision 8df830cfcb62dc89bde4fa289fae5688d0634798
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 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: LogService.java,v 1.5 2009/12/15 18:00:14 bigfatrat Exp $
*
*/
/*
* Portions Copyrighted 2011-2015 ForgeRock AS
*/
/**
* log operation.
*/
public class LogService implements RequestHandler {
/**
* Sting variable to keep logID by sessionID
*/
static private String loggedBySid;
/**
* The package which contains the LogService and other service classes.
*/
/**
* The string that should be used to create the response set.
*/
/**
* The SAX parser instance
*/
/**
* Registers the classes with the SAX parser
* @throws Exception
*/
public LogService() throws Exception {
parser = new WebtopParser();
}
/**
* The method which accepts the request set, parses the xml request and
* executes the appropriate log operation.
* @param requests
* @param servletRequest
* @param servletResponse
* @return The response set which contains the result of the log operation.
*/
if (Debug.messageEnabled()) {
}
}
// remember sid string is the last item in the log tag
}
else {
int l = xmlRequestString.length();
try {
//NOTE source ip address restrictions are temporary kludge
// for 6.1 session hijacking hotpatch
" user :" + loggedByID);
return rset;
}
} catch (SSOException e) {
return rset;
} catch (Exception e) {
}
try {
} catch(Exception e) {
// FORMAT ERROR RESPONSE HERE
if (MonitoringUtil.isRunning()) {
}
}
}
}
return rset;
}
}