| javax.servlet.http.HttpServlet emb.sample.servlet.BaseSampleServlet
All known Subclasses: emb.sample.servlet.ListSampleMedia, emb.sample.servlet.ConvertSampleImageChained, emb.sample.servlet.ConvertSampleVideoToMpegTs, emb.sample.servlet.ConvertSampleVideoToMpeg, emb.sample.servlet.ConvertSampleImageHalfSize, emb.sample.servlet.ConvertSampleImageOverlayed, emb.sample.servlet.ExtractHeaderData, emb.sample.servlet.ConvertSampleImageBW, emb.sample.servlet.ConvertSampleVideoTo3GPP, emb.sample.servlet.RetrieveSampleMedia, emb.sample.servlet.ConvertSampleImageFormat, emb.sample.servlet.ConvertSampleImageSvgToPng, emb.sample.servlet.ConvertSampleImageFrame, emb.sample.servlet.UploadSampleMedia, emb.sample.servlet.ActionDispatcher, emb.sample.servlet.HomeSample, emb.sample.servlet.LoadSampleMedia,
BaseSampleServlet | public class BaseSampleServlet extends HttpServlet (Code) | | Base classes for all sample
author: Brice Ruzand |
Inner Class :protected class StringPrinter implements Serializable | |
ACTION_DISPATCHER_SERVLET | final protected static String ACTION_DISPATCHER_SERVLET(Code) | | Retrive servlet URI
|
BYTE_IN_KB | final public static double BYTE_IN_KB(Code) | | tranforme Byte in KB
|
RANDOM | final protected static Random RANDOM(Code) | | Random seed
|
RETRIEVE_SERVLET | final protected static String RETRIEVE_SERVLET(Code) | | Retrive servlet URI
|
TEMPLATE_JSP | final protected static String TEMPLATE_JSP(Code) | | template jsp URI
|
displayInfo | protected void displayInfo(StringPrinter sp, MediaEntityLocal meb)(Code) | | Display medi info in XHTML
Parameters: sp - StringPrinter Parameters: meb - The media entity |
errorLog | protected static void errorLog(String msg)(Code) | | Method to print error messages to stderr and for syschronisation purpose
to stdout too.
Parameters: msg - java.lang.String |
exceptionHandler | protected void exceptionHandler(Throwable exception, Class errorClass, HttpServletRequest request, HttpServletResponse response) throws ServletException(Code) | | Method to handle all exceptions of all Music Application Servlets in a
uniform way using the specified error JSP (/jps/templatePage.jsp).
In case of error a ServletException will be thrown.
Parameters: exception - java.lang.Exception Parameters: errorClass - class where the error locate Parameters: request - com.sun.server.http.HttpServletRequest Parameters: response - com.sun.server.http.HttpServletResponse throws: ServletException - This exception will be thrown if theerrorhandling fails |
getMebHome | protected static MediaEntityLocalHome getMebHome() throws NamingException(Code) | | Provide a cached Home access
MediaEntityLocalHome throws: NamingException - in case MediaEntityLocalHome is not found |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|