java.lang.Object
com.semanticcms.core.servlet.Link
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionLink()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) 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. -
Method Summary
Modifier and TypeMethodDescriptionabsolute(boolean absolute) allowGeneratedElement(boolean allowGeneratedElement) canonical(boolean canonical) voidinvoke()voidAlso establishes a newPageContext.voidinvoke(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 newPageContext.- Throws:
ServletExceptionIOExceptionSkipPageException- See Also:
-
invoke
- Throws:
ServletExceptionIOExceptionSkipPageException- See Also:
-
invoke
public void invoke(Link.PageContextBody body) throws ServletException, IOException, SkipPageException - Throws:
ServletExceptionIOExceptionSkipPageException- See Also:
-
