@Override public void attributeAdded(HttpSessionBindingEvent _event) { System.out.println( "edu.temple.cis3238.wiki.WikiEventMonitor.[SESSION]attributeAdded()\n added " + _event.getName() + _event.toString()); LOG.info(Objects.toString(_event.getValue().toString())); LOG.info(Objects.toString(_event.getSource())); }
@Override public void attributeAdded(ServletContextAttributeEvent _event) { System.out.println( "edu.temple.cis3238.wiki.WikiEventMonitor.attributeAdded()\n added " + _event.getName() + _event.toString()); LOG.info(Objects.toString(_event.getSource())); }
public String getContent() { try { stream.flush(); stream.close(); } catch (IOException e) { LOG.trace("Caught Exception while flushing and closing stream.", e); } return stream.toString(); }