|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.agmodel.genericBroker.ServiceHTTP
|
+--net.agmodel.genericBroker.ServerHTTP
|
+--net.agmodel.resData.ResourceHTTP
Handles:
database connections,
requests for details of databases and weather stations, and
requests for weather data.
Typically a client establishes a MetBroker session through a call to ServerHTTP.getConnection(String,String).
The session manages connections to ResourceServer.
| Field Summary | |
static int |
ADDVIEWLANGUAGE
|
static int |
CHANGEPASSWORD
|
static int |
GETEDITLANGUAGE
|
static int |
GETITEMDESCRIPTION
|
static int |
GETLANGUAGENAME
|
static int |
GETRESITEM
|
static int |
GETRESITEMS
|
static int |
GETTRANSLATORFILESET
|
static int |
GETUSERFILESET
|
static int |
GETVIEWLANGUAGE
|
static String |
HTTPHOSTPARAM
|
static String |
HTTPPORTPARAM
|
static int |
LISTFILESET
|
static int |
LISTLANGUAGES
|
static int |
REMOVEVIEWLANGUAGE
|
| Fields inherited from class net.agmodel.genericBroker.ServerHTTP |
CONNECT, CONNECTUSER, DISCONNECT |
| Fields inherited from class net.agmodel.genericBroker.ServiceHTTP |
HOSTPARAMEXTENSION, PORTPARAMEXTENSION, servlet |
| Constructor Summary | |
ResourceHTTP(String host)
|
|
ResourceHTTP(String host,
int port)
|
|
| Method Summary | |
void |
addViewLanguage(String sessionID,
String[] viewLanguage)
Adds the new viewLanguages into the perticular translator's viewLanguage list. |
void |
changePassword(String sessionID,
String password)
Replaces the old password with new password entered by a prticular translator. |
String |
getEditLanguage(String sessionID)
Get the editLanguage of a translator. |
String |
getLanguageName(String sessionID,
String readerID,
String languageID)
Get the languageName for a languageID . |
ResItem |
getResItem(String sessionID,
String languageID,
String fileSet,
String itemKey)
Get the relevant text for a single id. |
ResItem[] |
getResItems(String sessionID,
String languageID,
String fileSet,
String[] itemKey)
Get the relevant text for a set if ids. |
protected String |
getServletPath()
|
TranslatorFileSet |
getTranslatorFileSet(String sessionID,
String fileSetID)
Get the TranslatorFileSet object for a specific fileSetID. |
UserFileSet |
getUserFileSet(String sessionID,
String languageID,
String fileSetID)
Get the UserFileSet object for a specific languageID and fileSetID. |
String[] |
getViewLanguage(String userType,
String username)
Get the ViewLanguages of a perticular (user)translator |
String[] |
listFileSet(String sessionID)
Get the list of ResFileSet. |
String[] |
listLanguages(String sessionID,
String readerID)
Get the list of all languages. |
void |
removeViewLanguage(String sessionID,
String viewLanguage)
Removes the viewLanguage from a perticular translator's viewLanguage list. |
| Methods inherited from class net.agmodel.genericBroker.ServerHTTP |
disconnect, getConnection, getConnection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String HTTPHOSTPARAM
public static final String HTTPPORTPARAM
public static final int LISTFILESET
public static final int GETLANGUAGENAME
public static final int GETUSERFILESET
public static final int GETRESITEM
public static final int GETRESITEMS
public static final int GETTRANSLATORFILESET
public static final int GETEDITLANGUAGE
public static final int GETVIEWLANGUAGE
public static final int ADDVIEWLANGUAGE
public static final int REMOVEVIEWLANGUAGE
public static final int CHANGEPASSWORD
public static final int LISTLANGUAGES
public static final int GETITEMDESCRIPTION
| Constructor Detail |
public ResourceHTTP(String host)
throws GeneralException
public ResourceHTTP(String host,
int port)
throws GeneralException
| Method Detail |
protected String getServletPath()
getServletPath in class ServiceHTTP
public String[] listFileSet(String sessionID)
throws GeneralException
sessionID - the ID returned by getConnection
GeneralException
public String getLanguageName(String sessionID,
String readerID,
String languageID)
throws GeneralException
sessionID - the ID returned by getConnectionreaderID - the readers preferred LanguageID in which name for a languageId is neededlanguageID - the languageID for which languageName is needed
GeneralException
public UserFileSet getUserFileSet(String sessionID,
String languageID,
String fileSetID)
throws GeneralException
sessionID - the ID returned by getConnectionlanguageID - specifies language in which object for UserFileSet is to be needefileSetID - specifies the resource for which UserFileSet object is needed
GeneralException
public ResItem getResItem(String sessionID,
String languageID,
String fileSet,
String itemKey)
throws GeneralException
sessionID - the ID returned by getConnectionlanguageID - specifies language in which text for an id to getitemKey - specifies the id(key)for which text is to be obtained
GeneralException
public ResItem[] getResItems(String sessionID,
String languageID,
String fileSet,
String[] itemKey)
throws GeneralException
sessionID - the ID returned by getConnectionlanguageID - specifies language in which texts for an ids to get
GeneralException
public TranslatorFileSet getTranslatorFileSet(String sessionID,
String fileSetID)
throws GeneralException
sessionID - the ID returned by getConnectionfileSetID - specifies the resource for which TranslatorFileSet object is needed
GeneralException
public String[] getViewLanguage(String userType,
String username)
throws GeneralException
userType - the type of user(eg: "translator" or "supervisror" or "user")username - specifies the name of a user(tanslator)
GeneralException
public void addViewLanguage(String sessionID,
String[] viewLanguage)
throws GeneralException
sessionID - the ID returned by getConnectionviewLanguage - specifies the array of viewLanguage to be added into translator's viewLanguage list
GeneralException
public void removeViewLanguage(String sessionID,
String viewLanguage)
throws GeneralException
sessionID - the ID returned by getConnectionviewLanguage - specifies the viewLanguage to be removed from the translator's viewLanguage list
GeneralException
public String getEditLanguage(String sessionID)
throws GeneralException
sessionID - the ID returned by getConnection
GeneralException
public String[] listLanguages(String sessionID,
String readerID)
throws GeneralException
sessionID - the ID returned by getConnectionreaderID - the readers preferred LanguageID in which language list is needed
GeneralException
public void changePassword(String sessionID,
String password)
throws GeneralException
sessionID - the ID returned by getConnectionpassword - specifies the new password enterd by the translator
GeneralException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||