Bookmark Topic Watch Topic
  • New Topic

Is it possible to access HTTP protocol folders as Java objects

 
Prince PV
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is it possible to retrieve the folders in an http server as java.io.File objects?

For instance, Consider the http site http://java.sun.com/, The http url of a file on this server is http://java.sun.com/new2java/educators/index.jsp. Is it possible to rerieve the folders new2java and educators as java.io.File objects?

Any tips on this is very much appreciated.
Prince
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
No. 1) File is for local (and Windows share) files only. 2) In URLs there is no notion of "folders". What you see as a folder may not even exist physically; web containers (like Apache HTTPD or Tomcat) allow you to map any URL to any file.

And I really urge you to read your private messages and follow the instructions therein. This is your last warning.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12038
223
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
Rob Prime wrote:This is your last warning.

Overruled. He blatantly ignored 3 previous warnings. His account is now locked. As is this topic.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!