yawda.view
Class CView
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
yawda.view.CView
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- CJooTemplateView, CPDFView, CSvgView, CTextView, CVelocityView, CXmlView
- public class CView
- extends javax.servlet.http.HttpServlet
- Author:
- Quentin Anciaux
- See Also:
- Serialized Form
|
Constructor Summary |
CView()
|
|
Method Summary |
protected static void |
addApplicationInformation(Node node,
CModule basePath,
CEnv env,
javax.servlet.ServletContext context)
|
protected static void |
addApplicationInformation(Node node,
CModule basePath,
CEnv env,
javax.servlet.ServletContext context,
CApplication app,
CTagsConfig config)
|
protected static String |
escape(String in)
|
protected static CModule |
getBasePath(javax.servlet.http.HttpServletRequest request)
|
protected static String |
getDocType(Document xmlDoc)
|
protected static String |
getEncoding(Document xmlDoc)
|
protected static String[] |
getHeaderFooter(Document xmlDoc)
|
protected org.apache.velocity.Template |
getTemplate(String templateName)
|
protected static String |
getViewName(String URI)
|
void |
init(javax.servlet.ServletConfig config)
|
static void |
invalidateView(String key)
|
static void |
invalidateViews(String keyEnd)
|
protected static int |
isVisible(CModule module,
javax.servlet.http.HttpServletRequest request)
|
protected static String |
merge(org.apache.velocity.Template templ,
javax.servlet.http.HttpServletRequest request)
|
protected static void |
renderError(PrintWriter out,
String viewName,
String error)
|
protected static void |
renderXMLRecurs(PrintWriter out,
Node node,
String[] aloneTags)
|
protected static void |
renderXMLRecurs(String encoding,
PrintWriter out,
Node node,
String[] aloneTags)
|
protected static void |
setHeader(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long length,
long lastModified)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| 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 |
VISIBLE
public static final int VISIBLE
- See Also:
- Constant Field Values
DISABLED
public static final int DISABLED
- See Also:
- Constant Field Values
HIDDEN
public static final int HIDDEN
- See Also:
- Constant Field Values
CView
public CView()
setHeader
protected static void setHeader(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long length,
long lastModified)
getBasePath
protected static CModule getBasePath(javax.servlet.http.HttpServletRequest request)
invalidateView
public static void invalidateView(String key)
invalidateViews
public static void invalidateViews(String keyEnd)
addApplicationInformation
protected static void addApplicationInformation(Node node,
CModule basePath,
CEnv env,
javax.servlet.ServletContext context)
addApplicationInformation
protected static void addApplicationInformation(Node node,
CModule basePath,
CEnv env,
javax.servlet.ServletContext context,
CApplication app,
CTagsConfig config)
isVisible
protected static int isVisible(CModule module,
javax.servlet.http.HttpServletRequest request)
- Parameters:
module - request -
- Returns:
renderError
protected static void renderError(PrintWriter out,
String viewName,
String error)
renderXMLRecurs
protected static void renderXMLRecurs(PrintWriter out,
Node node,
String[] aloneTags)
renderXMLRecurs
protected static void renderXMLRecurs(String encoding,
PrintWriter out,
Node node,
String[] aloneTags)
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException- See Also:
Servlet.init(javax.servlet.ServletConfig)
escape
protected static String escape(String in)
getViewName
protected static String getViewName(String URI)
getTemplate
protected org.apache.velocity.Template getTemplate(String templateName)
throws Exception
- Throws:
Exception
merge
protected static String merge(org.apache.velocity.Template templ,
javax.servlet.http.HttpServletRequest request)
throws Exception
- Throws:
Exception
getEncoding
protected static String getEncoding(Document xmlDoc)
getHeaderFooter
protected static String[] getHeaderFooter(Document xmlDoc)
getDocType
protected static String getDocType(Document xmlDoc)