java.lang.Object
com.semanticcms.core.servlet.impl.LinkImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBrokenPath
(PageRef pageRef) static String
getBrokenPath
(PageRef pageRef, String targetId) static void
writeBrokenPath
(PageRef pageRef, Appendable out) Writes a broken path reference as "¿/book/path?", no encoding.static void
writeBrokenPath
(PageRef pageRef, String targetId, Appendable out) Writes a broken path reference as "¿/book/path{#targetId}?", no encoding.static void
writeBrokenPathInXhtml
(PageRef pageRef, Appendable out) Writes a broken path reference as "¿/book/path?", encoding for XHTML.static void
writeBrokenPathInXhtml
(PageRef pageRef, String targetId, Appendable out) Writes a broken path reference as "¿/book/path{#targetId}?", encoding for XHTML.static void
writeBrokenPathInXhtmlAttribute
(PageRef pageRef, Appendable out) Writes a broken path reference as "¿/book/path?", encoding for XML attribute.static void
writeHref
(HttpServletRequest request, HttpServletResponse response, Appendable out, String href, URIParameters params, boolean absolute, boolean canonical) Writes an href attribute with parameters.static <Ex extends Throwable>
voidwriteLinkImpl
(ServletContext servletContext, ELContext elContext, HttpServletRequest request, HttpServletResponse response, AnyUnion_Palpable_Phrasing<?, ?> content, ValueExpression book, ValueExpression page, ValueExpression element, boolean allowGeneratedElement, ValueExpression anchor, ValueExpression viewName, boolean small, URIParameters params, boolean absolute, boolean canonical, ValueExpression clazz, LinkImpl.LinkImplBody<Ex> body) static <Ex extends Throwable>
voidwriteLinkImpl
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, AnyUnion_Palpable_Phrasing<?, ?> content, String book, String page, String element, boolean allowGeneratedElement, String anchor, String viewName, boolean small, URIParameters params, boolean absolute, boolean canonical, Object clazz, LinkImpl.LinkImplBody<Ex> body)
-
Method Details
-
writeBrokenPath
public static void writeBrokenPath(PageRef pageRef, String targetId, Appendable out) throws IOException Writes a broken path reference as "¿/book/path{#targetId}?", no encoding.- Throws:
IOException
-
writeBrokenPath
Writes a broken path reference as "¿/book/path?", no encoding.- Throws:
IOException
-
getBrokenPath
-
getBrokenPath
-
writeBrokenPathInXhtml
public static void writeBrokenPathInXhtml(PageRef pageRef, String targetId, Appendable out) throws IOException Writes a broken path reference as "¿/book/path{#targetId}?", encoding for XHTML.- Throws:
IOException
-
writeBrokenPathInXhtml
Writes a broken path reference as "¿/book/path?", encoding for XHTML.- Throws:
IOException
-
writeBrokenPathInXhtmlAttribute
public static void writeBrokenPathInXhtmlAttribute(PageRef pageRef, Appendable out) throws IOException Writes a broken path reference as "¿/book/path?", encoding for XML attribute.- Throws:
IOException
-
writeHref
public static void writeHref(HttpServletRequest request, HttpServletResponse response, Appendable out, String href, URIParameters params, boolean absolute, boolean canonical) throws ServletException, IOException Writes an href attribute with parameters. Adds contextPath to URLs that begin with a slash (/). Encodes the URL.- Throws:
ServletException
IOException
-
writeLinkImpl
public static <Ex extends Throwable> void writeLinkImpl(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, AnyUnion_Palpable_Phrasing<?, ?> content, String book, String page, String element, boolean allowGeneratedElement, String anchor, String viewName, boolean small, URIParameters params, boolean absolute, boolean canonical, Object clazz, LinkImpl.LinkImplBody<Ex> body) throws Ex, ServletException, IOException, SkipPageException- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Throws:
Ex
ServletException
IOException
SkipPageException
-
writeLinkImpl
public static <Ex extends Throwable> void writeLinkImpl(ServletContext servletContext, ELContext elContext, HttpServletRequest request, HttpServletResponse response, AnyUnion_Palpable_Phrasing<?, ?> content, ValueExpression book, ValueExpression page, ValueExpression element, boolean allowGeneratedElement, ValueExpression anchor, ValueExpression viewName, boolean small, URIParameters params, boolean absolute, boolean canonical, ValueExpression clazz, LinkImpl.LinkImplBody<Ex> body) throws Ex, ServletException, IOException, SkipPageException- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Parameters:
book
- ValueExpression that returns String, evaluated atCaptureLevel.META
or higherpage
- ValueExpression that returns String, evaluated atCaptureLevel.META
or higherelement
- ValueExpression that returns String, evaluated atCaptureLevel.BODY
only. Conflicts withanchor
.anchor
- ValueExpression that returns String, evaluated atCaptureLevel.BODY
only. Conflicts withelement
.viewName
- ValueExpression that returns String, evaluated atCaptureLevel.BODY
onlyclazz
- ValueExpression that returns Object, evaluated atCaptureLevel.BODY
only- Throws:
Ex
ServletException
IOException
SkipPageException
-