groovy.servlet
Class GroovyServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bygroovy.servlet.GroovyServlet
All Implemented Interfaces:
ResourceConnector, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GroovyServlet
extends javax.servlet.http.HttpServlet
implements ResourceConnector

This servlet should be registered to *.groovy in the web.xml. Groovy groovy.servlet.GroovyServlet Groovy *.groovy

Author:
Sam Pullara
See Also:
Serialized Form

Constructor Summary
GroovyServlet()
           
 
Method Summary
 java.net.URLConnection getResourceConnection(java.lang.String name)
           
 javax.servlet.ServletContext getServletContext()
           
 void init(javax.servlet.ServletConfig config)
           
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyServlet

public GroovyServlet()
Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface javax.servlet.ServletConfig

init

public void init(javax.servlet.ServletConfig config)
Specified by:
init in interface javax.servlet.Servlet

getResourceConnection

public java.net.URLConnection getResourceConnection(java.lang.String name)
                                             throws ResourceException
Specified by:
getResourceConnection in interface ResourceConnector
Throws:
ResourceException

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
Specified by:
service in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2003-2004 The Codehaus. All Rights Reserved.