java - Get the file list in the WebServer from the appserver -


Hi all - is there any way to bring the file list into a web server using the Java server?


I have something that is related to getting the resources of the web server

 new file ("/ webserver_context_root / folder /")  method The path is using the ap server ... 


PS: The reverse proxy has been set between the Web and the Opera server.

Any thoughts?

HTTP protocol does not provide a standard way to list "folder". Indeed, HTTP and URI / URL specs do not even recognize the "folder" as a concept.

If the perception of the folder is meaningful for your website, there are two approaches that can work:

  • Many webservers have a folder in the webserver content space The URL associated with can be configured to create a listing (such as in HTML) (this has usually been discontinued for security reasons.) You can remove the list of things in the folder to remove this HTML To "scrape" Can Su.

  • You can apply an undoubtedly service to "folders" back in a list of "files" (say) JSON or XML.

    Although note that both methods will be specific to that website, they will not work for arbitrary websites. Web server "if it can access it in some other way, other solutions may be

Comments