2016/05/28 - Apache Tuscany has been retired. 
For more information, please explore the Attic. 
 
org.apache.tuscany.sca.host.http
Class DefaultResourceServlet
java.lang.Object
  
HttpServlet
      
org.apache.tuscany.sca.host.http.DefaultResourceServlet
public class DefaultResourceServlet
- extends HttpServlet
 
A minimal implementation of a Servlet that serves documents in a document root
 directory.
 
 A Servlet host implementation is not required to use this implementation and can map
 the URI and document root to a more complete and more efficient implementation of  
 a resource Servlet, for example the Tomcat or Jetty default Servlets.
 
| 
Method Summary | 
protected  void | 
doGet(HttpServletRequest request,
      HttpServletResponse response)
 
            | 
 java.lang.String | 
getDocumentRoot()
 
          Returns the document root. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DefaultResourceServlet
public DefaultResourceServlet(java.lang.String documentRoot)
- Constructs a new ResourceServlet
- Parameters:
 documentRoot - the document root
 
getDocumentRoot
public java.lang.String getDocumentRoot()
- Returns the document root.
- Returns:
 - the document root
 
 
 
doGet
protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
- Throws:
 ServletException
java.io.IOException