NextApp Echo2
v2.1.1

nextapp.echo2.webcontainer.image
Class AwtImageService

java.lang.Object
  extended by nextapp.echo2.webcontainer.image.AbstractImageService
      extended by nextapp.echo2.webcontainer.image.AwtImageService
All Implemented Interfaces:
nextapp.echo2.webrender.Service

public class AwtImageService
extends AbstractImageService

Renders an AwtImageReference to the client.


Field Summary
static AwtImageService INSTANCE
           
 
Fields inherited from interface nextapp.echo2.webrender.Service
DO_NOT_CACHE
 
Constructor Summary
AwtImageService()
           
 
Method Summary
 java.lang.String getId()
          Returns the unique identifier of this service.
 int getVersion()
          Returns the version of the service to be retrieved.
 void renderImage(nextapp.echo2.webrender.Connection conn, nextapp.echo2.app.ImageReference imageReference)
          Renders the specified image to the given connection.
 
Methods inherited from class nextapp.echo2.webcontainer.image.AbstractImageService
createUri, service, serviceBadRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final AwtImageService INSTANCE
Constructor Detail

AwtImageService

public AwtImageService()
Method Detail

getId

public java.lang.String getId()
Description copied from interface: nextapp.echo2.webrender.Service
Returns the unique identifier of this service.

Returns:
The unique identifier of this service.
See Also:
Service.getId()

getVersion

public int getVersion()
Description copied from interface: nextapp.echo2.webrender.Service
Returns the version of the service to be retrieved. When a service is requested with an updated version number, a non-cached copy will be used. getVersion() should return distinct values whenever the service's content may have changed.

Returns:
The current version number of the service.
See Also:
Service.getVersion()

renderImage

public void renderImage(nextapp.echo2.webrender.Connection conn,
                        nextapp.echo2.app.ImageReference imageReference)
                 throws java.io.IOException
Description copied from class: AbstractImageService
Renders the specified image to the given connection. Implementations should set the response content type, and write image data to the response OutputStream.

Specified by:
renderImage in class AbstractImageService
Parameters:
conn - the Connection on which to render the image
imageReference - the image to be rendered
Throws:
java.io.IOException - if the image cannot be rendered
See Also:
AbstractImageService.renderImage( nextapp.echo2.webrender.Connection, nextapp.echo2.app.ImageReference)

NextApp Echo2
v2.1.1