Package io.wcm.handler.richtext
Class RichTextRequest
java.lang.Object
io.wcm.handler.richtext.RichTextRequest
Holds all properties that are part of a rich text handling request.
-
Constructor Summary
ConstructorsConstructorDescriptionRichTextRequest(@Nullable org.apache.sling.api.resource.Resource resource, @Nullable String text, @Nullable io.wcm.handler.url.UrlMode urlMode, @Nullable TextMode textMode, @Nullable io.wcm.handler.media.MediaArgs mediaArgs) Constructor. -
Method Summary
Modifier and TypeMethodDescription@Nullable io.wcm.handler.media.MediaArgsGets the media arguments.@Nullable org.apache.sling.api.resource.ResourceGets the resource containing rich text.@NotNull org.apache.sling.api.resource.ValueMapGets the properties from resource containing rich text.@Nullable StringgetText()Gets the raw rich text.@Nullable TextModeGets the text mode.@Nullable io.wcm.handler.url.UrlModeGets the URL mode.toString()
-
Constructor Details
-
RichTextRequest
public RichTextRequest(@Nullable @Nullable org.apache.sling.api.resource.Resource resource, @Nullable @Nullable String text, @Nullable @Nullable io.wcm.handler.url.UrlMode urlMode, @Nullable @Nullable TextMode textMode, @Nullable @Nullable io.wcm.handler.media.MediaArgs mediaArgs) Constructor.- Parameters:
resource- Resource containing rich texttext- Raw rich texturlMode- URL modetextMode- Text modemediaArgs- Media arguments
-
-
Method Details
-
getResource
@Nullable public @Nullable org.apache.sling.api.resource.Resource getResource()Gets the resource containing rich text.- Returns:
- Resource containing rich text
-
getText
Gets the raw rich text.- Returns:
- Raw rich text
-
getUrlMode
@Nullable public @Nullable io.wcm.handler.url.UrlMode getUrlMode()Gets the URL mode.- Returns:
- URL mode
-
getTextMode
Gets the text mode.- Returns:
- Text mode
-
getMediaArgs
@Nullable public @Nullable io.wcm.handler.media.MediaArgs getMediaArgs()Gets the media arguments.- Returns:
- Media arguments
-
getResourceProperties
@NotNull public @NotNull org.apache.sling.api.resource.ValueMap getResourceProperties()Gets the properties from resource containing rich text.- Returns:
- Properties from resource containing rich text. The value map is a copy of the original map so it is safe to change the property values contained in the map.
-
toString
-