/** * Construct the context object member variable of this class * using the passed IP address as part of the loggable * information * * @throws DSpaceSwordException can be thrown by the internals of the DSpace SWORD implementation */ private Context constructContext() throws DSpaceSwordException { Context context = new Context(); // Set the session ID and IP address context.setExtraLogInfo("session_id=0"); return context; }
/** * Construct the context object member variable of this class * using the passed IP address as part of the loggable * information * * @param ip the ip address of the incoming request * @throws org.purl.sword.base.SWORDException */ private Context constructContext(String ip) throws SWORDException { Context context = new Context(); // Set the session ID and IP address context.setExtraLogInfo("session_id=0:ip_addr=" + ip); return context; }
/** * Construct the context object member variable of this class * using the passed IP address as part of the loggable * information * * @param ip the ip address of the incoming request * @throws org.purl.sword.base.SWORDException */ private Context constructContext(String ip) throws SWORDException { try { Context context = new Context(); // Set the session ID and IP address context.setExtraLogInfo("session_id=0:ip_addr=" + ip); return context; } catch (SQLException e) { log.error("caught exception: ", e); throw new SWORDException("There was a problem with the database", e); } }
context.setExtraLogInfo("session_id=" + request.getSession().getId()); context.setExtraLogInfo("session_id=" + request.getSession().getId() + ":ip_addr=" + ip);
c.setExtraLogInfo("session_id=" + request.getSession().getId() + ":ip_addr=" + ip);
context.setExtraLogInfo("session_id=" + request.getSession().getId());