|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.image.ImagePeer
A base class from which all image peers are derived.
Field Summary | |
private nextapp.echo.ImageReference |
imageRef
A reference to the represented ImageReference |
private int |
recency
A value assigned by the ImageRepository to indicate how
recently the image peer has been used. |
Constructor Summary | |
ImagePeer()
Default constructor. |
Method Summary | |
abstract Service |
getAncillaryService()
Returns the ancillary service used for rendering this image on the client. |
nextapp.echo.ImageReference |
getImageReference()
Returns the underlying image reference. |
(package private) int |
getRecency()
Returns the recency value of this peer. |
abstract java.lang.String |
getUri(Connection conn)
Returns the URI required to reference this image from a document rendered by the given Connection . |
void |
registered()
Called to notify the image peer that it has been registered to an image. |
void |
setId(Id id)
Sets the identifier for the ancillary service if one is required. |
(package private) void |
setImageReference(nextapp.echo.ImageReference imageRef)
Initializes the image peer: this method must be called before any other methods. |
(package private) void |
setRecency(int recency)
Sets the recency value of this peer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int recency
ImageRepository
to indicate how
recently the image peer has been used.
private nextapp.echo.ImageReference imageRef
ImageReference
Constructor Detail |
public ImagePeer()
Method Detail |
public abstract Service getAncillaryService()
public nextapp.echo.ImageReference getImageReference()
int getRecency()
public abstract java.lang.String getUri(Connection conn)
Connection
.
conn
- The connection that is rendering the document that
references the image.
public void registered()
public void setId(Id id)
id
- The identifier for the ancillary service.void setImageReference(nextapp.echo.ImageReference imageRef)
imageRef
- The image that is represented by this
ImagePeer
.void setRecency(int recency)
recency
- The recency value.
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |