|
||||||||||
| 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
public abstract class ServerPublisher
Note: This is very much in flux.
Class ServerPublisher is used for publishers that talk to some server.
| Field Summary | |
|---|---|
static String |
ATTR_PASSWORD
Key to look up the password |
static String |
ATTR_PORT
Key to look up the port |
static String |
ATTR_SERVER
Key to look up the server |
static String |
ATTR_USER
Key to look up the user |
static String |
NULL_STRING
More clear than doing (String) null |
| Fields inherited from class ucar.unidata.idv.publish.IdvPublisher |
|---|
ATTR_CLASS, GU, TAG_PUBLISHER |
| Constructor Summary | |
|---|---|
protected |
ServerPublisher(IntegratedDataViewer idv,
Element element)
Create the object |
| Method Summary | |
|---|---|
String |
clean(String s)
Trim the string |
boolean |
defined(String s)
Is string defined, i.e., is it non-null and non zero length |
void |
doPublish(String title,
String filePath,
String properties)
Publish |
protected HTTPConnection |
getConnection()
Make the connection |
String |
getPassword()
Get the password value |
int |
getPort()
Get the port value |
String |
getServer()
Get the server value |
String |
getUser()
Get the user value |
protected void |
init()
Initialize |
boolean |
isConfigured()
Is this publisher configured |
protected void |
savePreferences()
Write out the preferences |
void |
setPassword(String value)
Set the password value |
void |
setPort(String value)
Set the port value |
void |
setServer(String value)
Set the server value |
void |
setUser(String value)
Set the user value |
| Methods inherited from class ucar.unidata.idv.publish.IdvPublisher |
|---|
configure, getName, getPropertyPrefix, getPublishers, publishFile, publishMessage, 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 NULL_STRING
public static final String ATTR_SERVER
public static final String ATTR_PORT
public static final String ATTR_USER
public static final String ATTR_PASSWORD
| Constructor Detail |
|---|
protected ServerPublisher(IntegratedDataViewer idv,
Element element)
idv - The idvelement - The xml element that defined us| Method Detail |
|---|
protected void init()
init in class IdvPublisherprotected void savePreferences()
savePreferences in class IdvPublisherprotected HTTPConnection getConnection()
public void doPublish(String title,
String filePath,
String properties)
doPublish in class IdvPublishertitle - The titlefilePath - The filepathproperties - The propertiespublic boolean defined(String s)
s - The string
public String clean(String s)
s - The string
public boolean isConfigured()
isConfigured in class IdvPublisherpublic void setServer(String value)
value - The valuepublic String getServer()
public void setPort(String value)
value - The new port valuepublic int getPort()
public void setUser(String value)
value - The userpublic String getUser()
public void setPassword(String value)
value - The passwordpublic String getPassword()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||