commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33676] New: - Suggestions For Servlet In Sandbox
Date Mon, 21 Feb 2005 18:51:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33676>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33676

           Summary: Suggestions For Servlet In Sandbox
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: fzammetti@omnytex.com


Hello. I discussed this with some people on the Commons dev list a few weeks 
back... 

I submitted some additions there to the Servlet packages' RequestUtils class, 
as well as a new SessionUtils class.  It was suggested that these submissions 
might serve to jump-start development of that package, so it is my hope, now 
that I've FINALLY gotten around to entering them here, that these additions 
might be accepted and move the Servlet package out of the sandbox.  

I'm not proposing adding anything especially extensive, but the additions were 
generally commented on positively by those that discussed them on the dev list.

So, in the interest of progress, attached here will be two files, 
RequestUtils.java and SessionUtils.java.  

The first contains four new methods to be added to RequestUtils: 
getRequestAttributes(), getRequestParameters(), getRequestHeaders() and 
getAllRequestInfo().  They do as their name implies, returning a HashMap such 
that the caller can simply do:

System.out.println(RequestUtils.getSessionAtttributes()); 

...but using a logging package one would hope!  The method getAllRequestInfo() 
is a convenience method that calls the other three, and it's what I personally 
use most of the time.  The attached file is not a full class, just the methods 
themselves.  I thought that might be easier to add than trying to diff the 
existing code.  Should just need to add an import of HashMap.

The other file, SessionUtils, is a new class that at the moment contains two 
public methods: getSessionAttributes() and getSessionSize().  The first does 
exactly what the RequestUtils.getRequestAttributes() method does, but for a 
session object.  The getSessionSize() method gets the total current size of a 
referenced session.  This is a nice thing to have when your dealing with 
replication of session objects in a cluster, and just in general, to know how 
much memory each session is eating.  Good for finding out your design is being 
a bit too liberal with session!

As I and some others said, I'm hoping this revives the servlet package, to 
some degree.  Let me know if there's anything else I can do!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message