- All Implemented Interfaces:
ElementWriter
A file nested within SemanticCMS pages and elements in a Servlet environment.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.semanticcms.core.servlet.Element
Element.Body<E extends Element>, Element.PageContextBody<E extends Element>, Element.PageContextNoElementBody
-
Field Summary
Fields inherited from class com.semanticcms.core.servlet.Element
element, request, response, servletContext
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new file in the current page context.Creates a new file in the current page context.Creates a new file in the current page context.Creates a new file in the current page context.File
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, File element, String path) Creates a new file.File
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, File element, String book, String path) File
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String path) Creates a new file.File
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String path) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doBody
(CaptureLevel captureLevel, Element.Body<? super File> body) hidden
(boolean hidden) void
writeTo
(Writer out, ElementContext context)
-
Constructor Details
-
File
public File(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, File element, String path) Creates a new file. -
File
public File(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String path) Creates a new file. -
File
public File(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, File element, String book, String path) -
File
public File(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String path) -
File
Creates a new file in the current page context.- See Also:
-
File
Creates a new file in the current page context.- See Also:
-
File
Creates a new file in the current page context.- See Also:
-
File
Creates a new file in the current page context.- See Also:
-
-
Method Details
-
id
-
book
-
doBody
protected void doBody(CaptureLevel captureLevel, Element.Body<? super File> body) throws ServletException, IOException, SkipPageException - Overrides:
doBody
in classElement<File>
- Throws:
ServletException
IOException
SkipPageException
-
writeTo
- Throws:
IOException
-