org.apache.tiles.request.portlet.delegate

## Interface ResponseDelegate

- All Known Implementing Classes:
    MimeResponseDelegate

      public interface ResponseDelegate

  Exposes features of a response, if they are available.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `OutputStream` | `getOutputStream()` Returns the output stream.
    `PrintWriter` | `getPrintWriter()` Returns the print writer.
    `Writer` | `getWriter()` Returns the writer.
    `boolean` | `isResponseCommitted()` Checks if the response is committed.
    `void` | `setContentType(String contentType)` Sets the content type of the response.

- - ### Method Detail

    - #### getOutputStream

          OutputStream getOutputStream()
                                throws IOException

      Returns the output stream.
      Returns:
        The output stream.
      Throws:
        `IOException` - If the underlying response causes a problem.

    - #### getPrintWriter

          PrintWriter getPrintWriter()
                              throws IOException

      Returns the print writer.
      Returns:
        The print writer.
      Throws:
        `IOException` - If the underlying response causes a problem.

    - #### getWriter

          Writer getWriter()
                    throws IOException

      Returns the writer.
      Returns:
        The writer.
      Throws:
        `IOException` - If the underlying response causes a problem.

    - #### setContentType

          void setContentType(String contentType)

      Sets the content type of the response.
      Parameters:
        `contentType` - The content type.

    - #### isResponseCommitted

          boolean isResponseCommitted()

      Checks if the response is committed.
      Returns:
        `true` if the response is committed.

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.