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:
java.io.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: 28189 $, $Date: 2010-11-15 10:39:25 +0100 (Mo, 15. Nov 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
Serialized Form

Constructor Summary
ResourcesServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static java.lang.String getHttpGetURL(java.lang.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 java.lang.String getHttpGetURL(java.lang.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,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2011. All Rights Reserved.