Class PhotonUnifiedResponse.HtmlHelper

java.lang.Object
com.helger.photon.app.PhotonUnifiedResponse.HtmlHelper
Enclosing class:
PhotonUnifiedResponse

public static final class PhotonUnifiedResponse.HtmlHelper extends Object
  • Field Details

    • PROPERTY_VALUE

      public static final String PROPERTY_VALUE
      Response value property - only in case of success - contains the response data as object
      See Also:
    • PROPERTY_EXTERNAL_CSS

      public static final String PROPERTY_EXTERNAL_CSS
      Additional CSS files - only in case of success - contains a list of strings
      See Also:
    • PROPERTY_INLINE_CSS_BEFORE_EXTERNAL

      public static final String PROPERTY_INLINE_CSS_BEFORE_EXTERNAL
      Additional inline CSS - only in case of success - contains a string
      See Also:
    • PROPERTY_INLINE_CSS_AFTER_EXTERNAL

      public static final String PROPERTY_INLINE_CSS_AFTER_EXTERNAL
      Additional inline CSS - only in case of success - contains a string
      See Also:
    • SUBPROPERTY_CSS_MEDIA

      public static final String SUBPROPERTY_CSS_MEDIA
      The sub key for CSS elements specifying the media list
      See Also:
    • SUBPROPERTY_CSS_HREF

      public static final String SUBPROPERTY_CSS_HREF
      The sub key for CSS elements specifying the external CSS href
      See Also:
    • SUBPROPERTY_CSS_CONTENT

      public static final String SUBPROPERTY_CSS_CONTENT
      The sub key for CSS elements specifying the inline CSS content
      See Also:
    • PROPERTY_EXTERNAL_JS

      public static final String PROPERTY_EXTERNAL_JS
      Additional JS files - only in case of success - contains a list of strings
      See Also:
    • PROPERTY_INLINE_JS_BEFORE_EXTERNAL

      public static final String PROPERTY_INLINE_JS_BEFORE_EXTERNAL
      Additional inline JS - only in case of success - contains a string
      See Also:
    • PROPERTY_INLINE_JS_AFTER_EXTERNAL

      public static final String PROPERTY_INLINE_JS_AFTER_EXTERNAL
      Additional inline JS - only in case of success - contains a string
      See Also:
    • PROPERTY_HTML

      public static final String PROPERTY_HTML
      Default property for HTML content
      See Also:
  • Method Details

    • getHTMLString

      @Nonnull public static String getHTMLString(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nullable com.helger.html.hc.IHCHasChildrenMutable<?,? super com.helger.html.hc.IHCNode> aNode, @Nonnull com.helger.html.hc.special.HCSpecialNodes aSpecialNodes, @Nullable com.helger.html.hc.config.IHCOnDocumentReadyProvider aOnDocumentReadyProvider)
    • addCSSAndJS

      public static void addCSSAndJS(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.html.hc.special.HCSpecialNodes aSpecialNodes)
    • getResponseAsJSON

      @Nonnull public static com.helger.json.IJsonObject getResponseAsJSON(@Nullable com.helger.json.IJsonObject aSuccessValue, @Nonnull com.helger.html.hc.special.IHCSpecialNodes aSpecialNodes)