RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Juozas Baliuka
Hi, It is no something unusual to use proxy for validation, it is good to separate this aspect because validation sometimes makes code unreadable and it is sometimes subject to change. But it is about validation, not about collections. TypedList is some kind of very specific validator for collect

RE: HttpClient HTTP response problem

2002-04-23 Thread Rick Horowitz
Marc, Thanks very much for addressing this problem. Any help you can provide figuring out why I'm seeing these extra sets of headers in the EBay http response would be greatly appreciated. Doesn't make sense to me either. If you can't figure this out...if you find the time to try the HTTP GET req

RE: HttpClient Post

2002-04-23 Thread Amir D. Kolsky
Please do (support the body directly). It does not make sense not to, especially since it is a common practice. I'm trying to override PutMethod. When the HTTP header is built, getName is used to figure out which method it is, right? -Original Message- From: Waldhoff, Rodney [mailto:[E

Re: [Collections][SUBMIT] WeakHashSet

2002-04-23 Thread otisg
Non-binding +1 from me. Otis ___ Get your own FREE email account at iVillage.com! http://webmail.ivillage.com/ <-Original Message-> > > From: Jeff Keyser > Sent: 4/24/2002 12:41:05 AM > To: [EMAIL PROTECTED] > Subject: [Collec

cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/axes AttributeContext.java AncestorContext.java

2002-04-23 Thread dmitri
dmitri 02/04/23 21:06:46 Modified:jxpath/src/java/org/apache/commons/jxpath/ri/model/beans BeanPropertyPointer.java BeanPointerFactory.java BeanPointer.java BeanAttributeIterator.java jxpath/src/java/org/apache/commons/jxpa

cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/axes ChildContext.java InitialContext.java SelfContext.java

2002-04-23 Thread dmitri
dmitri 02/04/23 20:32:48 Modified:jxpath/src/java/org/apache/commons/jxpath/ri EvalContext.java JXPathContextReferenceImpl.java jxpath/src/java/org/apache/commons/jxpath/ri/axes ChildContext.java InitialContext.java

cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model NodePointer.java

2002-04-23 Thread dmitri
dmitri 02/04/23 20:31:59 Modified:jxpath/src/java/org/apache/commons/jxpath/ri/model NodePointer.java Log: Improved formatting Revision ChangesPath 1.2 +108 -83 jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/NodePoint

cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath XMLDocumentContainer.java Variables.java

2002-04-23 Thread dmitri
dmitri 02/04/23 20:30:17 Modified:jxpath/src/java/org/apache/commons/jxpath XMLDocumentContainer.java Variables.java Log: Improved formatting Revision ChangesPath 1.3 +21 -10 jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/XML

cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath ClassFunctions.java AbstractFactory.java JXPathContextFactoryConfigurationError.java MapDynamicPropertyHandler.java Pointer.java JXPathContextFactory.java BasicVariables.java PackageFunctions.java JXPathIntrospector.java

2002-04-23 Thread dmitri
dmitri 02/04/23 20:29:34 Modified:jxpath/src/java/org/apache/commons/jxpath ClassFunctions.java AbstractFactory.java JXPathContextFactoryConfigurationError.java MapDynamicPropertyHandler.java Pointer.java

[Collections][SUBMIT] WeakHashSet

2002-04-23 Thread Jeff Keyser
Trying again... Perhaps my wrapping the source code into a jar was confusing. This time I'm just attaching the source files. > -Original Message- > From: Jeff Keyser [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 13, 2002 8:10 PM > To: Jakarta Commons Developers List (E-mail) > Subj

cvs commit: jakarta-commons/jxpath build.xml build.properties.sample

2002-04-23 Thread dmitri
dmitri 02/04/23 18:02:55 Modified:jxpath build.xml build.properties.sample Log: Should not have to have collections and logkit on the classpath Revision ChangesPath 1.6 +3 -1 jakarta-commons/jxpath/build.xml Index: build.xml =

RE: HttpClient Post

2002-04-23 Thread Waldhoff, Rodney
The TestWebappMethods TestCase has examples of using POST (and PUT). See http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/test/org/apache /commons/httpclient/TestWebappMethods.java?rev=1.3&content-type=text/vnd.vie wcvs-markup This old thread http://marc.theaimsgroup.com/?l=jakarta-co

DO NOT REPLY [Bug 8215] - need a way to set request body in PostMethod

2002-04-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

HttpClient Post

2002-04-23 Thread Amir D. Kolsky
Hi all, I am trying to HttpClient to Post a request with an XML body to some host/path. I looked through the JUnit test cases, expecially those dealing with testing the methods, and non of them test POST, is that OK? Where can I find a working example of how to Post a request? I'm losing sleep

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Tim Moore
I think the version using the Proxy pattern that you posted a few minutes ago is just as flexible and much easier to understand...just my $.02 :-) -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-486

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
OK, this is a different design to one using Predicate, although obviously a similar purpose. Before I can continue and finish the other collections, I would like a decision on which way to go ;-) This design gives much more power, but is therefore more complex (more methods, more choice). Maybe t

[pool] PROPOSAL: add collecting of statistics to pool implementations

2002-04-23 Thread Steven Caswell
Proposal: add collecting of statistics to pool implementations Reasoning: I'd like to be able to get stats from a pooling implementation to see how well the various configuration parameters are set. For example, in the GenericObjectPool implementation, I'd like to know how many waits occurred, ho

[Collections][SUBMIT] PredicateList

2002-04-23 Thread Stephen Colebourne
Hi all, I've updated the classes to work around the existing Predicate class and the code below, see attached files. Stephen > From: Tim Moore <[EMAIL PROTECTED]> > Works for me! :-) > > From: Jack, Paul [mailto:[EMAIL PROTECTED]] > > I wouldn't even have a subclass for TypedList; I'd just put a

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
public interface CollectionFilter { public Object beforeAdd(Object obj, Collection coll); public Object beforeRemove(Object obj, Collection coll); public Object afterRemove(Object obj, Collection coll); } And same (ish) for Map? And then List/Set extend Collection filter and add

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Tim Moore
Works for me! :-) -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 > -Original Message- > From: Jack, Paul [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 4:42 PM > To: 'Ja

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Jack, Paul
> PredicatedList would just take a Predicate in its constructor, and > anytime someone adds an element it throws an exception if the > predicate's evalute method returns false on the element. Then when > TypedList extends PredicatedList it becomes a very small class that > simply constructs a Typ

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Tim Moore
> > Though that does raise the question: if you wrap a list that has > > preexisting elements that are invalid, how should that be > > handled (if > > at all)? > > I throw an IllegalArgumentException in the constructor. I > wanted to be able to rely on the object. Sounds reasonable to me. -

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Tim Moore
Well I think all you need is a TypeCheckPredicate class...real simple: public class TypeCheckPredicate implements Predicate { private Class type; public TypeCheckPredicate(Class type) { this.type = type; } public boolean evaluate(Object input) { retur

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
From: Tim Moore <[EMAIL PROTECTED]> > Well if you think of this as a list proxy with no backing store of its > own, then IMO it makes sense to think of the parameter as the collection > to delegate to instead of to copy items out of. I feel like this is > still in keeping with the spirit of the C

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Tim Moore
> -Original Message- > From: Stephen Colebourne [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 4:20 PM > To: Jakarta Commons Developers List > Subject: Re: [Collections][SUBMIT] TypedList > > > From: Tim Moore <[EMAIL PROTECTED]> > > > What is the point of the wrap method? >

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
From: Henri Yandell <[EMAIL PROTECTED]> > To answer myself, very bad form. I imagine that we would have a > MapFilter/Predicate and a CollectionFilter/Predicate. Separate structures. > Maybe allowing an adaptor for Maps which could use Collections on keys or > values. So we need something more th

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
From: Tim Moore <[EMAIL PROTECTED]> > > What is the point of the wrap method? > > > > Can I do: > > List list = TypedList(new LinkedList()); > > Yes, but the syntax is > List list = TypedList.wrap(new LinkedList()); > I think the question is, why have the wrap method at all when all it

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Tim Moore
> -Original Message- > From: Stephen Colebourne [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 3:58 PM > To: Jakarta Commons Developers List > Subject: Re: [Collections][SUBMIT] TypedList > > > > From: Henri Yandell <[EMAIL PROTECTED]> > > > > What is the point of the wrap

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
On Tue, 23 Apr 2002, Henri Yandell wrote: > I can commit my ProxyList/ProxyMap if desired :) I have ProxySet too. Ah, my cvs was out of date. Seems that ProxyList/ProxySet are all that are needed. -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
To answer myself, very bad form. I imagine that we would have a MapFilter/Predicate and a CollectionFilter/Predicate. Separate structures. Maybe allowing an adaptor for Maps which could use Collections on keys or values. Hen On Tue, 23 Apr 2002, Henri Yandell wrote: > or some such. I imagine t

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
> The specification for List (and other collections) 'requests' that all > implementations should have a constructor that takes in a Collection object > (to do an addAll). I was respecting this by not confusing the constructors. > Also, I may need constructors to do the simple instanceof check,

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
*whistle* I can commit my ProxyList/ProxyMap if desired :) I have ProxySet too. Hen On Tue, 23 Apr 2002, Tim Moore wrote: > I'd say keep them separate, because they basically do different things. > But this is another argument for making a ProxyList base class. > > -- > Tim Moore / Blackboard

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
I've swung to Filter as a concept. We're really discussing the same concept as ServletFilters. Can we model on that? Change the input, block the input, change the output, block the output?? If we're blocking and transforming, then is it just a filter concept? Can we write a FilterCollection and

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
From: Henri Yandell <[EMAIL PROTECTED]> > > > What is the point of the wrap method? > > > > > > Can I do: > > > List list = TypedList(new LinkedList()); > > > > Yes, but the syntax is > > List list = TypedList.wrap(new LinkedList()); > > However, as noted above, the iterator is based o

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Tim Moore
I'd say keep them separate, because they basically do different things. But this is another argument for making a ProxyList base class. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 > -

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
What would a Predicate look like? We've passed an object in, so it must have the object being added (or removed/searched for etc???). So I'm guessing in Predicate(d)List we'll do some code kinda like: // uses ArrayList internally, can supply another type of List somehow. List list = new Predica

cvs commit: jakarta-commons/latka/src/docbook developers-guide.xml

2002-04-23 Thread rwaldhoff
rwaldhoff02/04/23 10:47:17 Modified:latka/src/docbook developers-guide.xml Log: update to coding conventions comments Revision ChangesPath 1.2 +12 -18jakarta-commons/latka/src/docbook/developers-guide.xml Index: developers-guide.xml =

HttpClient HTTP response problem

2002-04-23 Thread Rick Horowitz
I'm using HttpClient obtained from CVS a few days ago. I'm trying to get the EBay login page, which I can GET from my browser via URL: http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll?SignIn8 With HTTPClient, I'm using: GetMethod method = new

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread James Strachan
> Good stuff! I think the tests cover a good deal of the new > functionality. When I get a chance I'll try to get a more > comprehensive suite together. > > I'll implement the multiple value stuff next and see how that > goes. I don't think it will be too big a deal. I'll keep > you posted any

cvs commit: jakarta-commons/docs cli.html beanutils.html betwixt.html charter.html collections.html commons.html components.html contributors.html digester.html directory.html index.html jelly.html license.html logging.html messenger.html releases.html sandbox.html versioning.html

2002-04-23 Thread jstrachan
jstrachan02/04/23 09:37:17 Modified:docs beanutils.html betwixt.html charter.html collections.html commons.html components.html contributors.html digester.html directory.html index.html jelly.html license.html l

cvs commit: jakarta-commons/xdocs/stylesheets project.xml

2002-04-23 Thread jstrachan
jstrachan02/04/23 09:36:06 Modified:xdocscomponents.xml xdocs/stylesheets project.xml Added: xdocscli.xml Log: Added home page for CLI Revision ChangesPath 1.22 +9 -2 jakarta-commons/xdocs/components.xml Index: components.xml

cvs commit: jakarta-commons-sandbox/cli PROPOSAL.html STATUS.html

2002-04-23 Thread jstrachan
jstrachan02/04/23 09:33:08 Modified:cli PROPOSAL.html STATUS.html Log: Added John as a committer Revision ChangesPath 1.2 +3 -1 jakarta-commons-sandbox/cli/PROPOSAL.html Index: PROPOSAL.html =

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
Ignoring the 1.2 aims of Collections project, why not? :) New component-project: Absurd-things-with-proxies... On Tue, 23 Apr 2002, Jack, Paul wrote: > Hehehehe...we *could* use dynamic proxy classes to provide > one factory method that would work for all collections and > maps... > > This isn

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread John Keyes
Good stuff! I think the tests cover a good deal of the new functionality. When I get a chance I'll try to get a more comprehensive suite together. I'll implement the multiple value stuff next and see how that goes. I don't think it will be too big a deal. I'll keep you posted anyway. BTW,

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Jack, Paul
> The way I did this was: > > TypedStructure interface. AbstractTypedStructure class. > IllegalTypeException exception. > > Then TypedSet/List/Map implement Set/List/Map and extend > AbstractTypedStructure. Hehehehe...we *could* use dynamic proxy classes to provide one factory method that woul

[Latka] "echo" tag

2002-04-23 Thread Morgan Delagrange
Hi all, What do you think about adding an "echo" tag (similar to Ant's) as a top level element of the DTD? My use case is this: in a large functional test, I would like an informational message to appear when I commence each discrete grouping of similar tests. It should make it easier, for exam

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread James Strachan
Hi John I've applied all your patches now I think - do let me know if I missed anything. All the new unit tests run nicely. Many thanks for this - nice job! James - Original Message - From: "John Keyes" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: S

cvs commit: jakarta-commons-sandbox/cli/src/test/org/apache/commons/cli OptionGroupTest.java ParseRequiredTest.java AllTest.java

2002-04-23 Thread jstrachan
jstrachan02/04/23 09:08:02 Modified:cli/src/java/org/apache/commons/cli Option.java Options.java cli/src/test/org/apache/commons/cli AllTest.java Added: cli/src/java/org/apache/commons/cli AlreadySelectedException.java

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Henri Yandell
Could we also have TypedMap and TypedSet? The way I did this was: TypedStructure interface. AbstractTypedStructure class. IllegalTypeException exception. Then TypedSet/List/Map implement Set/List/Map and extend AbstractTypedStructure. I can supply my source if you want, but as it's something

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread James Strachan
+1 this seems a good idea. James - Original Message - From: "Jack, Paul" <[EMAIL PROTECTED]> To: "'Jakarta Commons Developers List'" <[EMAIL PROTECTED]> Sent: Tuesday, April 23, 2002 4:14 PM Subject: RE: [Collections][SUBMIT] TypedList > Hi Steve, > > Your TypedList got me thinking...A

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread James Strachan
From: "jbjk" <[EMAIL PROTECTED]> > No problem. > > I'm interested in the concept of the sandbox. Is there a lifecycle > or process document somewhere, for components that reside in the > sandbox? http://jakarta.apache.org/commons/charter.html > What are the other jakarta implementations of com

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread Henri Yandell
Mines not in Jakarta, but if you're researching for features then it's at: http://www.generationjava.com/docs/GenJavaCore/docs0.4/com/generationjava/util/package-summary.html interface CArgs, classes AbstractCArgs, ArrayCArgs and MapCArgs. Hen On 23 Apr 2002, jbjk wrote: > No problem. > > I'

RE: [Collections][SUBMIT] TypedList

2002-04-23 Thread Jack, Paul
Hi Steve, Your TypedList got me thinking...At first I thought, wouldn't it be nice to specify a parameter that would allow the null element (sometimes I need a list that allows nulls)...then I got to thinking, actually wouldn't it be nice if the validate() method could be overridden by a subcla

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread jbjk
No problem. I'm interested in the concept of the sandbox. Is there a lifecycle or process document somewhere, for components that reside in the sandbox? What are the other jakarta implementations of command line parsers? I'd be interested in having a look at these also to see what they offer

RE: [LOGGING] ClassLoader Problems

2002-04-23 Thread Craig R. McClanahan
On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote: > Date: Tue, 23 Apr 2002 10:50:10 +0100 > From: [EMAIL PROTECTED] > Reply-To: Jakarta Commons Developers List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: RE: [LOGGING] ClassLoader Problems > > Craig, > > Just to clarify, you wrote a LogFac

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread James Strachan
Sorry John - I will apply your patches very soon. A bit snowed under. Gimme a few more hours and it'll be there... Please do keep the cli patches coming! James - Original Message - From: "bob mcwhirter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Jakarta Commons Developers List" <[EMAI

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread bob mcwhirter
cli was originally my code. James Strachan was guiding it through the sandbox process. I think others were suggesting other implementations from elsewhere in jakarta. And then I think things stalled. James-- Do you know the status of cli? Is it moving forward? -bob On 23 Apr 2002,

Re: [PATCH sandbox-cli] new features added

2002-04-23 Thread jbjk
Hi folks, Its been a few days since I sent this and I haven't heard anything since. I've a few more features I'd like to add but there's not much point in me doing that unless the previous ones are integrated first. What is the next stage in the process? Thanks, -John K On Sat, 2002-04-20 at

cvs commit: jakarta-commons/pool/src/java/org/apache/commons/pool overview.html

2002-04-23 Thread rwaldhoff
rwaldhoff02/04/23 06:47:17 Added: pool/src/java/org/apache/commons/pool overview.html Log: (oops, forgot the add) apply John McNally's javadoc overview patch, and some related changes (see bug 8082 - http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8082) Revision Changes

cvs commit: jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang Strings.java

2002-04-23 Thread bayard
bayard 02/04/23 06:34:01 Modified:lang/src/java/org/apache/commons/lang Strings.java Log: Bug submitted by: "L. Mohan Arun". The random methods return the same value within the same millisecond due to the methods creating a new Random object each time. I've pulled out the Ran

[GUMP] Build Failure - commons-latka

2002-04-23 Thread Ted Husted
This email is autogenerated from the output from: Buildfile: build.xml init: [echo] latka 1.0-dev

RE: [LOGGING] ClassLoader Problems

2002-04-23 Thread Ken . Horn
Craig, Just to clarify, you wrote a LogFactory impl, and put it in the shared lib dir (so all apps can use the same instance)?. If so, how do you determine which app to rename the category for? I can't think offhand of knowing a particular instance / Class instance is in a particular app, sinc

cvs commit: jakarta-commons/latka/src/xdocs project.xml

2002-04-23 Thread dion
dion02/04/23 01:02:34 Modified:latka/src/xdocs project.xml Log: Removed old comments Revision ChangesPath 1.2 +1 -12 jakarta-commons/latka/src/xdocs/project.xml Index: project.xml ===

cvs commit: jakarta-commons/latka/src/docbook status.xml

2002-04-23 Thread dion
dion02/04/23 00:59:03 Modified:latka/src/docbook status.xml Log: Removed todo entries Revision ChangesPath 1.2 +2 -33 jakarta-commons/latka/src/docbook/status.xml Index: status.xml ===

cvs commit: jakarta-commons/latka/src/xdocs tasks.xml

2002-04-23 Thread dion
dion02/04/23 00:58:46 Added: latka/src/xdocs tasks.xml Log: Extracted from status doc. file name is a standard maven one. Revision ChangesPath 1.1 jakarta-commons/latka/src/xdocs/tasks.xml Index: tasks.xml =