[jcifs] Re: SmbFile constructor

Eric Glass eric.glass at gmail.com
Tue Aug 10 23:07:19 GMT 2004


Here you go.  This removes the explicit setContentLength(0) calls
(allowing the container to use chunked encoding), and removes the
"Connection: close" headers (lets us reuse the HTTP connection more
efficiently).


Eric

On Tue, 10 Aug 2004 17:50:05 -0400 (EDT), Michael B Allen
<mba2000 at ioplex.com> wrote:
> 
> 
> Eric Glass said:
> > Mike,
> >
> > I'm looking for a constructor like:
> >
> >     public SmbFile(SmbFile context, String name, int shareAccess);
> >
> > The closest we appear to have is:
> >
> >     public SmbFile(String context, String name,
> >             NtlmPasswordAuthentication auth, int shareAccess);
> >
> > Which would be okay, except given an SmbFile there's no public way to
> > extract the "auth" member.  So I want to create an SmbFile relative to
> > the context, with a specific shareAccess, with the same NPA as the
> > context.  Currently, I think the only way to do this is to get the
> > "auth" member from the context file via reflection (kludgy), and then
> > use the constructor above.  Any thoughts?
> 
> I added the necessary constructor. Also, you sent a patch for the Filter
> to be completely stateless (or something to that effect) but I am having
> trouble locating it. Can you retransmit so I can have a look-see.
> 
> Thanks,
> Mike
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: updates.tgz
Type: application/x-gzip-compressed
Size: 4018 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20040810/d2e1645d/updates.bin


More information about the jcifs mailing list