|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.publish.IdvPublisher
ucar.unidata.idv.publish.ServerPublisher
ucar.unidata.idv.publish.InfoceteraBlogger
public class InfoceteraBlogger
Note, This is very much in flux. A client to an infocetera weblog (see: http://www.infocetera.com).
| Field Summary | |
|---|---|
static String |
ATTR_DIRPATH
Attribute name for the dirpath |
| Fields inherited from class ucar.unidata.idv.publish.ServerPublisher |
|---|
ATTR_PASSWORD, ATTR_PORT, ATTR_SERVER, ATTR_USER, NULL_STRING |
| Fields inherited from class ucar.unidata.idv.publish.IdvPublisher |
|---|
ATTR_CLASS, GU, TAG_PUBLISHER |
| Constructor Summary | |
|---|---|
InfoceteraBlogger(IntegratedDataViewer idv)
Create the object |
|
InfoceteraBlogger(IntegratedDataViewer idv,
Element element)
Create the object |
|
| Method Summary | |
|---|---|
boolean |
configure()
Do the configuration |
String |
getBlogFileLink(String filename)
What is the link to the uploaded file that we add to the content |
String |
getDirpath()
Get the infocetera directory path |
String |
getName()
What is the name of this publisher |
protected void |
init()
Initialize |
boolean |
isConfigured()
Have we been configured |
boolean |
publishFile(String file,
Properties props)
Post the given file to the infocetera weblog |
boolean |
publishMessage(String subject,
String label,
String msg,
String filename,
Properties props)
Post the message and the file to the infocetera weblog |
boolean |
resultOk(String xml)
Check the return xml from the http post |
protected void |
savePreferences()
Save opff any preferences |
void |
setDirpath(String value)
Set the infocetera directory path |
protected void |
showError(String msg,
String html)
This method strips the html tags from the given html error message. |
| Methods inherited from class ucar.unidata.idv.publish.ServerPublisher |
|---|
clean, defined, doPublish, getConnection, getPassword, getPort, getServer, getUser, setPassword, setPort, setServer, setUser |
| Methods inherited from class ucar.unidata.idv.publish.IdvPublisher |
|---|
getPropertyPrefix, getPublishers, publishMessageAndFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTR_DIRPATH
| Constructor Detail |
|---|
public InfoceteraBlogger(IntegratedDataViewer idv)
idv - The idv
public InfoceteraBlogger(IntegratedDataViewer idv,
Element element)
idv - The idvelement - The xml element that defined us| Method Detail |
|---|
protected void init()
init in class ServerPublisherprotected void savePreferences()
savePreferences in class ServerPublisherpublic String getBlogFileLink(String filename)
filename - The filename
public boolean resultOk(String xml)
xml - The xml we go back from infocetera
public boolean publishFile(String file,
Properties props)
publishFile in class IdvPublisherfile - The file to postprops - The properties that contain the infocetera dirpath
protected void showError(String msg,
String html)
msg - The messagehtml - The htmlpublic String getName()
getName in class IdvPublisherpublic boolean isConfigured()
isConfigured in class ServerPublisherpublic boolean configure()
configure in class IdvPublisher
public boolean publishMessage(String subject,
String label,
String msg,
String filename,
Properties props)
publishMessage in class IdvPublishersubject - The subjectlabel - The label for the linkmsg - The weblog messagefilename - Filename to postprops - The properties that contain the infocetera dirpath
public void setDirpath(String value)
value - The pathpublic String getDirpath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||