You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.server.communication.

Class StreamResourceHandler

java.lang.Object
com.vaadin.flow.server.communication.StreamResourceHandler

All Implemented Interfaces:

Serializable

public class StreamResourceHandler extends Object implements Serializable

Handles StreamResource instances registered in VaadinSession.

For internal use only. May be renamed or removed in a future release.

Since:

1.0

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • StreamResourceHandler

      public StreamResourceHandler()
  • Method Details

    • handleRequest

      public void handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamResource streamResource) throws IOException

      Handle sending for a stream resource request.

      Parameters:

      session - session for the request

      request - request to handle

      response - response object to which a response can be written.

      streamResource - stream resource that handles data writer

      Throws:

      IOException - if an IO error occurred