|
NextApp Echo2 v2.1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.webcontainer.image.AbstractImageService
public abstract class AbstractImageService
Abstract base service for rendering images sourced from the application container.
Field Summary |
---|
Fields inherited from interface nextapp.echo2.webrender.Service |
---|
DO_NOT_CACHE |
Constructor Summary | |
---|---|
AbstractImageService()
|
Method Summary | |
---|---|
java.lang.String |
createUri(ContainerInstance containerInstance,
java.lang.String imageId)
Creates a URI to retrieve a specific image for a specific component from the server. |
abstract void |
renderImage(nextapp.echo2.webrender.Connection conn,
nextapp.echo2.app.ImageReference imageReference)
Renders the specified image to the given connection. |
void |
service(nextapp.echo2.webrender.Connection conn)
Services an HTTP request. |
void |
serviceBadRequest(nextapp.echo2.webrender.Connection conn,
java.lang.String message)
Handles an invalid request for an image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nextapp.echo2.webrender.Service |
---|
getId, getVersion |
Constructor Detail |
---|
public AbstractImageService()
Method Detail |
---|
public java.lang.String createUri(ContainerInstance containerInstance, java.lang.String imageId)
containerInstance
- the relevant application container instance.imageId
- the unique id to retrieve the image from the
ContainerInstance
public abstract void renderImage(nextapp.echo2.webrender.Connection conn, nextapp.echo2.app.ImageReference imageReference) throws java.io.IOException
OutputStream
.
conn
- the Connection
on which to render the imageimageReference
- the image to be rendered
java.io.IOException
- if the image cannot be renderedpublic void service(nextapp.echo2.webrender.Connection conn) throws java.io.IOException
nextapp.echo2.webrender.Service
service
in interface nextapp.echo2.webrender.Service
conn
- A Connection
object which wraps
HttpServletRequest
and
HttpServletResponse
objects and provides
access to the facilities of the Echo application container.
java.io.IOException
- in the event of errors related to processing the
HTTP request or producing a response.Service.service(nextapp.echo2.webrender.Connection)
public void serviceBadRequest(nextapp.echo2.webrender.Connection conn, java.lang.String message)
conn
- the Connection
message
- the error message
|
NextApp Echo2 v2.1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |