java.lang.Object
com.semanticcms.core.servlet.Link
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
ConstructorDescriptionLink()
Creates a new link in the current page context.Creates a new link in the current page context.Creates a new link in the current page context.Creates a new link in the current page context.Link
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response) Link
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String page) Link
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String page) Link
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String page, String element) -
Method Summary
Modifier and TypeMethodDescriptionabsolute
(boolean absolute) allowGeneratedElement
(boolean allowGeneratedElement) canonical
(boolean canonical) void
invoke()
void
Also establishes a newPageContext
.void
invoke
(Link.PageContextBody body) params
(URIParameters params) small
(boolean small) When false, the default, will generate a <a> tag around the entire body.
-
Constructor Details
-
Link
public Link(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response) -
Link
public Link(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String page) -
Link
public Link(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String page) -
Link
public Link(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String page, String element) -
Link
public Link()Creates a new link in the current page context.- See Also:
-
Link
Creates a new link in the current page context.- See Also:
-
Link
Creates a new link in the current page context.- See Also:
-
Link
Creates a new link in the current page context.- See Also:
-
-
Method Details
-
book
-
page
-
element
-
allowGeneratedElement
-
anchor
-
view
-
small
When false, the default, will generate a <a> tag around the entire body. Otherwise, will generate a <span> instead, with a small link added to the end of the body.
Use of a small link can be helpful for usability, such as when the body is a piece of information intended for quick copy/paste by the user.
-
params
-
absolute
-
canonical
-
clazz
-
invoke
Also establishes a new
PageContext
.- Throws:
ServletException
IOException
SkipPageException
- See Also:
-
invoke
- Throws:
ServletException
IOException
SkipPageException
- See Also:
-
invoke
public void invoke(Link.PageContextBody body) throws ServletException, IOException, SkipPageException - Throws:
ServletException
IOException
SkipPageException
- See Also:
-