org.makumba.commons
Class MakumbaResourceServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.makumba.commons.MakumbaResourceServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MakumbaResourceServlet
- extends HttpServlet
This servlet provides resources needed by makumba, e.g. JavaScript for the date editor KruseCalendarEditor
and live validation LiveValidationProvider.
- Version:
- $Id: MakumbaResourceServlet.java 3693 2009-02-11 00:38:34Z rosso_nero $
- Author:
- Rudolf Mayer
- See Also:
- Serialized Form
| 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 |
RESOURCE_PATH_JAVASCRIPT
public static final String RESOURCE_PATH_JAVASCRIPT
- See Also:
- Constant Field Values
RESOURCE_PATH_CSS
public static final String RESOURCE_PATH_CSS
- See Also:
- Constant Field Values
RESOURCE_PATH_IMAGES
public static final String RESOURCE_PATH_IMAGES
- See Also:
- Constant Field Values
dfLastModified
public static final SimpleDateFormat dfLastModified
makumbaResources
public static int makumbaResources
imageContentTypes
public static final String[] imageContentTypes
MakumbaResourceServlet
public MakumbaResourceServlet()
doGet
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException
- Overrides:
doGet in class HttpServlet
- Throws:
ServletException
IOException
writeResources
public static void writeResources(StringBuffer sb,
String contextPath,
Iterable<Object> resources)
writeStylesInHeader
public static void writeStylesInHeader(StringBuffer sb,
String contextPath,
String styleSheet)
getContentType
public static String getContentType(URL url)
isImageType
public static boolean isImageType(URL url)
writeScriptsInHeader
public static void writeScriptsInHeader(StringBuffer sb,
String contextPath,
String script)