java.lang.Object
com.semanticcms.core.servlet.impl.LinkImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBrokenPath(PageRef pageRef) static StringgetBrokenPath(PageRef pageRef, String targetId) static voidwriteBrokenPath(PageRef pageRef, Appendable out) Writes a broken path reference as "¿/book/path?"static voidwriteBrokenPath(PageRef pageRef, String targetId, Appendable out) Writes a broken path reference as "¿/book/path{#targetId}?"static voidwriteBrokenPathInXhtml(PageRef pageRef, Appendable out) Writes a broken path reference as "¿/book/path?"static voidwriteBrokenPathInXhtml(PageRef pageRef, String targetId, Appendable out) Writes a broken path reference as "¿/book/path{#targetId}?"static voidwriteBrokenPathInXhtmlAttribute(PageRef pageRef, Appendable out) Writes a broken path reference as "¿/book/path?"static voidwriteHref(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:
ServletExceptionIOException
-
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:
ExServletExceptionIOExceptionSkipPageException
-
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.METAor higherpage- ValueExpression that returns String, evaluated atCaptureLevel.METAor higherelement- ValueExpression that returns String, evaluated atCaptureLevel.BODYonly. Conflicts withanchor.anchor- ValueExpression that returns String, evaluated atCaptureLevel.BODYonly. Conflicts withelement.viewName- ValueExpression that returns String, evaluated atCaptureLevel.BODYonlyclazz- ValueExpression that returns Object, evaluated atCaptureLevel.BODYonly- Throws:
ExServletExceptionIOExceptionSkipPageException
-
