org.deegree.services.resources
Class ResourcesServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.deegree.services.resources.ResourcesServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ResourcesServlet
extends javax.servlet.http.HttpServlet

Provides access to service-related stored resources, e.g. XML schema files.

Version:
$Revision: 29567 $, $Date: 2011-02-07 18:12:17 +0100 (Mon, 07 Feb 2011) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $
See Also:
Serialized Form

Constructor Summary
ResourcesServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static String getHttpGetURL(String resourcePath)
          Returns the HTTP URL for retrieving the specified resource.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcesServlet

public ResourcesServlet()
Method Detail

getHttpGetURL

public static String getHttpGetURL(String resourcePath)
Returns the HTTP URL for retrieving the specified resource.

NOTE: This method will only return a correct result if the calling thread originated in the doGet(HttpServletRequest, HttpServletResponse) or HttpServlet.doPost(HttpServletRequest, HttpServletResponse) of this class (or has been spawned as a child thread by such a thread).

Parameters:
resourcePath -
Returns:
the HTTP URL (for GET requests)

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException


Copyright © 2011. All Rights Reserved.