Interface SlingHttpServletResponseResult

    • Method Detail

      • getContentLength

        long getContentLength()
        Gets the content length
        Returns:
        the content length or -1 if not set
      • getStatusMessage

        @Nullable
        @Nullable java.lang.String getStatusMessage()
        Gets the status message
        Returns:
        the status message or null.
      • getCookie

        @Nullable
        @Nullable Cookie getCookie​(java.lang.String name)
        Gets the named cookie.
        Parameters:
        name - the name of the cookie
        Returns:
        the cookie or null if no cookie with that name exists
      • getCookies

        @Nullable
        @Nullable Cookie[] getCookies()
        Gets all cookies.
        Returns:
        the array of cookies or null if no cookies were set
      • getOutput

        byte[] getOutput()
        Gets the output as a byte array.
        Returns:
        the output as a byte array
      • getOutputAsString

        @NotNull
        @NotNull java.lang.String getOutputAsString()
        Gets the output as a string.
        Returns:
        the output as a string