|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.semoa.service.AbstractService examples.postcard.PostcardServiceImpl
Field Summary | |
private int |
BUF_SIZE
The size of the buffer used to load images. |
private BufferedImage |
image_
The postcard image of this service. |
private String |
location_
The host location. |
private String |
url_
The unique host URL. |
Fields inherited from class de.fhg.igd.semoa.service.AbstractService |
REV_POSTFIX, REV_PREFIX |
Fields inherited from interface examples.postcard.PostcardService |
PUBLISH_KEY |
Constructor Summary | |
PostcardServiceImpl()
Construtor. |
Method Summary | |
String |
author()
Returns the name of the author of the service. |
private void |
debug(Object debugInfo)
|
Postcard |
getPostcard()
Retrieves an image which is stamped with the agent's name, the server URL, the owners name and a time stamp. |
Postcard |
getPostcard(BufferedImage image)
Stamps the given image as described at getPostcard() getPostcard. |
String |
info()
Returns the informative string which should describe the service's essence in a sentence. |
String |
revision()
Returns the revision number of this class as a string. |
void |
setImage(File f)
Allows to read the image to be used as postcard from a file. |
Methods inherited from class de.fhg.igd.semoa.service.AbstractService |
checkDependencies, dependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private BufferedImage image_
private String url_
private String location_
private final int BUF_SIZE
Constructor Detail |
public PostcardServiceImpl()
image
is per default
initialized with a white picture.
Method Detail |
public Postcard getPostcard()
PostcardService
getPostcard
in interface PostcardService
public Postcard getPostcard(BufferedImage image)
PostcardService
getPostcard()
getPostcard.
getPostcard
in interface PostcardService
public String author()
AbstractService
author
in interface Service
author
in class AbstractService
public String revision()
AbstractService
majorVersion()
, minorVersion
based on the assumption that this method returns a
revision string as generated by rcs(1) for the template
"$Revision: 1.7 $/$Date: 2007-08-08 04:41:53 +0200 (Wed, 08 Aug 2007) $".
revision
in class AbstractService
public String info()
AbstractService
info
in interface Service
info
in class AbstractService
public void setImage(File f)
PostcardService
.
f
- the file containing an image
IOException
- when the file could not be readprivate void debug(Object debugInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |