net.sourceforge.ajaxtags.servlets
Class SourceLoader
java.lang.Object
javax.servlet.GenericServlet
net.sourceforge.ajaxtags.servlets.SourceLoader
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public final class SourceLoader
- extends javax.servlet.GenericServlet
This class loads the frameworks, javascript files and css files from the jar file. Changes to the
javascript or css files can only be done by repacking the ajaxtags-resources.jar file.
- Since:
- 1.5
- Author:
- Jens Kapitza
- See Also:
- Serialized Form
Field Summary |
static String |
BASE
This is the base where we can find the source which should be loaded. |
Method Summary |
void |
init()
Check the configuration if we do have a prefix. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Write the content from the jarfile to the client stream. |
void |
service(javax.servlet.ServletRequest req0,
javax.servlet.ServletResponse resp0)
Warp to http request and response. |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE
public static final String BASE
- This is the base where we can find the source which should be loaded.
- See Also:
- Constant Field Values
SourceLoader
public SourceLoader()
service
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
- Write the content from the jarfile to the client stream. Use bufferedwriter to handle
newline. The filename is found in the requestURI, the contextpath is excluded and replaced
with the base package name.
- Parameters:
req
- the requestresp
- the response
- Throws:
javax.servlet.ServletException
- any errors
IOException
- any io errors
service
public void service(javax.servlet.ServletRequest req0,
javax.servlet.ServletResponse resp0)
throws javax.servlet.ServletException,
IOException
- Warp to http request and response.
- Specified by:
service
in interface javax.servlet.Servlet
- Specified by:
service
in class javax.servlet.GenericServlet
- Parameters:
req0
- the requestresp0
- the response
- Throws:
javax.servlet.ServletException
- any errors
IOException
- any io errors
init
public void init()
throws javax.servlet.ServletException
- Check the configuration if we do have a prefix.
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.