Package org.apache.tomcat

Examples of org.apache.tomcat.Resources


     *
     * @param file Filename for which to identify a MIME type
     */
    public String getMimeType(String file) {

  Resources resources = host.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getMimeType(file));

    }
View Full Code Here


     *
     * @param path The path to the desired resource
     */
    public String getRealPath(String path) {

  Resources resources = host.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getRealPath(path));

    }
View Full Code Here

     * @exception MalformedURLException if the path is not given
     *  in the correct form
     */
    public URL getResource(String path) throws MalformedURLException {

  Resources resources = host.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getResource(path));

    }
View Full Code Here

     *
     * @param path The path to the desired resource.
     */
    public InputStream getResourceAsStream(String path) {

  Resources resources = host.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getResourceAsStream(path));

    }
View Full Code Here

     *
     * @param resources The newly associated Resources
     */
    public void setResources(Resources resources) {

  Resources oldResources = this.resources;
  this.resources = resources;
  if (this.resources != null)
      this.resources.setContainer(this);
  support.firePropertyChange("resources", oldResources, this.resources);

View Full Code Here

     *
     * @param file Filename for which to identify a MIME type
     */
    public String getMimeType(String file) {

  Resources resources = context.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getMimeType(file));

    }
View Full Code Here

     *
     * @param path The path to the desired resource
     */
    public String getRealPath(String path) {

  Resources resources = context.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getRealPath(path));

    }
View Full Code Here

     * @exception MalformedURLException if the path is not given
     *  in the correct form
     */
    public URL getResource(String path) throws MalformedURLException {

  Resources resources = context.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getResource(path));

    }
View Full Code Here

     *
     * @param path The path to the desired resource.
     */
    public InputStream getResourceAsStream(String path) {

  Resources resources = context.getResources();
  if (resources == null)
      return (null);
  else
      return (resources.getResourceAsStream(path));

    }
View Full Code Here

TOP

Related Classes of org.apache.tomcat.Resources

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.