You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Schalk Cronjé <ys...@gmail.com> on 2014/05/14 20:52:43 UTC

[VFS] What does GET_TYPE entail?

The description for Capabilities.GET_TYPE states that "The file type can 
be determined". Does this mean it can be determined in

    - A way similar to Unix 'file' command?

    OR

    - A way similar to MIME Content-type?

Secondly can someone point me to where is actually been used in the core 
code to make a decision? I cannot find anything in core.

-- 
Schalk W. Cronjé
@ysb33r


Re: [VFS] What does GET_TYPE entail?

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Hello,

I think to recall it is related to the getType(), especially "is this a
file or a directory".

All core providers besides URL define the capability. URL provider can
only tell 404/200 apart but has no concept of Directories.

Thats why there are no decisions made on the capability, it is just a
statement of the provider how doGetType() can be understood.

I am however not sure where I read that. And this test here seems to
suggest otherwise (because you would expect HttpFileSystem to not
declare GET_TYPE:
http://svn.apache.org/repos/asf/commons/proper/vfs/tags/sandbox/src/test/org/apache/commons/vfs/test/UrlStructureTests.java)


Gruss
Bernd



 Am Wed, 14 May 2014 19:52:43 +0100
schrieb Schalk Cronjé <ys...@gmail.com>:

> The description for Capabilities.GET_TYPE states that "The file type
> can be determined". Does this mean it can be determined in
> 
>     - A way similar to Unix 'file' command?
> 
>     OR
> 
>     - A way similar to MIME Content-type?
> 
> Secondly can someone point me to where is actually been used in the
> core code to make a decision? I cannot find anything in core.
> 


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