class MyEntityResolver implements EntityResolver {
- // Logger
- private Log log = LogFactory.getLog(MyEntityResolver.class);
-
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException {
for (int i = 0; i < Constants.CACHED_DTD_PUBLIC_IDS.length; i++) {
return isrc;
}
}
+ Log log = LogFactory.getLog(MyEntityResolver.class);
if (log.isDebugEnabled())
log.debug("Resolve entity failed" + publicId + " " + systemId);
log.error(Localizer.getMessage("jsp.error.parse.xml.invalidPublicId",
class MyErrorHandler implements ErrorHandler {
- // Logger
- private Log log = LogFactory.getLog(MyErrorHandler.class);
-
public void warning(SAXParseException ex) throws SAXException {
+ Log log = LogFactory.getLog(MyErrorHandler.class);
if (log.isDebugEnabled())
log.debug("ParserUtils: warning ", ex);
// We ignore warnings
public class ServerCookie implements Serializable {
- private static org.apache.juli.logging.Log log =
- org.apache.juli.logging.LogFactory.getLog(ServerCookie.class);
-
// Version 0 (Netscape) attributes
private MessageBytes name=MessageBytes.newInstance();
private MessageBytes value=MessageBytes.newInstance();
// -------------------- utils --------------------
- public static void log(String s ) {
- if (log.isDebugEnabled())
- log.debug("ServerCookie: " + s);
- }
-
public String toString() {
return "Cookie " + getName() + "=" + getValue() + " ; "
+ getVersion() + " " + getPath() + " " + getDomain();