James - thanks a lot for the reply!
James William Dumay wrote:
Because these are used to track download progress - if you are using a
Stream based protocol then the StreamWagon abstract class will take care
of this for you.
My transport layer operates on files, so I cannot do streaming wagon
without saving a stream into a file first - big inefficiency :(
What protocol are you trying to implement?
http/https/webdav - jetty folks were kind to help with multi-threaded
client, so I hope to improve the speed characteristics. And learn wagon
a little bit.
Oleg - HTTP 1.1 RFC2616 Section 3.3.1 specifies that the HTTP-Date type
MUST be represented in GMT - so a servers last-modified header should
reflect this.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
getIfNewer() is used to short circuit the fetching of metadata files -
if the file is reported older than the one you have locally then there
is no need to download it.
My comment was more on the idea on "newer" applied to maven artifact:
- if you have a-1.3.jar, you don't need newer
- if you have a-1.3-SNAPSHOT.jar, you cannot compare timestamps because
remote repo normally has timestamped snapshot and you don't go for
HTTP-Date, you have to use metadata.xml in order to decide if newer
snapshot exists
- if you have a-1.3-20080903....jar timestamped snapshot - you will also
have to use metadata.xml to compare dates, server file lastModified may
be off, as well as server time itself - I had a lot of those, especially
when repo is out of your control :)
That is why I question the nedd for "newer" in the APIs. Plus I don't
always trust http server to correctly keep track of time, I still trust
maven more - to create correct metadata.xml and put appropriate
timestamp into the file's version.
Projects like Mercury (being used in trunk soon?)
I hope
are going to simply
this by having a rethink about what operations work best for accessing
data from repositories.
Until that eventuates we are stuck with Wagon.
That was another reason why I am trying to create mercury wagon - to
test it in the real world.
Cheers
James
Thanks again, James.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]