Package org.silverpeas.core.web.mvc.util
Class WysiwygRouting
- java.lang.Object
-
- org.silverpeas.core.web.mvc.util.WysiwygRouting
-
public class WysiwygRouting extends Object
A routing definition to the WYSIWYG editor in Silverpeas. It is an HTML page in which is displayed the WYSIWYG text editor tool.- Author:
- mmoquillon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WysiwygRouting.WysiwygRoutingContext
Context for which the routing to the WYSIWYG editor will be done.
-
Constructor Summary
Constructors Constructor Description WysiwygRouting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDestinationToWysiwygEditor(WysiwygRouting.WysiwygRoutingContext context)
Gets the path of the WYSIWYG editor path relative to the Silverpeas web context enriched with query parameters to set the required properties asked by the editor.String
getWysiwygEditorPath(WysiwygRouting.WysiwygRoutingContext context, javax.servlet.http.HttpServletRequest request)
Gets the path of the WYSIWYG editor page relative to the Silverpeas web context.
-
-
-
Method Detail
-
getWysiwygEditorPath
public String getWysiwygEditorPath(WysiwygRouting.WysiwygRoutingContext context, javax.servlet.http.HttpServletRequest request) throws RoutingException
Gets the path of the WYSIWYG editor page relative to the Silverpeas web context.- Parameters:
context
- the routing context from which properties are set.request
- the current HTTP request. If null, then the path will have query-parameters to set some required properties.- Returns:
- the path relative to the Silverpeas web context.
- Throws:
RoutingException
- if an error occurs while building the path.
-
getDestinationToWysiwygEditor
public String getDestinationToWysiwygEditor(WysiwygRouting.WysiwygRoutingContext context) throws RoutingException
Gets the path of the WYSIWYG editor path relative to the Silverpeas web context enriched with query parameters to set the required properties asked by the editor.- Parameters:
context
- the routing context from which properties are set.- Returns:
- the path with query parameters relative to the Silverpeas web context.
- Throws:
RoutingException
- if an error occurs while building the path.
-
-