|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tensegrity.palojava.http.handlers.HttpHandler
com.tensegrity.palojava.http.handlers.HttpServerHandler
public class HttpServerHandler
This HttpHandler
is used for the server part of the http
communication. It provides methods for managing a palo server.
Constructor Summary | |
---|---|
HttpServerHandler(HttpClient client)
Creates a new HttpServerHandler instance. |
Method Summary | |
---|---|
java.lang.String[] |
getDatabases(java.util.Map name2Id)
Returns the names of the database which are currently stored within the palo server |
java.lang.String[] |
getInfos()
Returns information about the palo server. |
java.lang.String[] |
login(java.lang.String user,
java.lang.String passwd)
Requires the login name and an md5 encrypted password. |
boolean |
reload()
Reloads the server data from disk into memory |
boolean |
save()
Save all data. |
Methods inherited from class com.tensegrity.palojava.http.handlers.HttpHandler |
---|
setSID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpServerHandler(HttpClient client)
HttpServerHandler
instance. Requires a
HttpClient
for delegating all requests to the connected
palo server.
client
- the connection to the palo serverMethod Detail |
---|
public final java.lang.String[] getInfos() throws java.io.IOException
String
array containing information about the
palo server
java.io.IOException
- if an I/O exception occurspublic final java.lang.String[] getDatabases(java.util.Map name2Id) throws java.io.IOException
String
array containing database names
java.io.IOException
- if an I/O exception occurspublic final boolean reload() throws java.io.IOException
java.io.IOException
- if an I/O exception occurspublic final boolean save() throws java.io.IOException
java.io.IOException
- if an I/O exception occurspublic final java.lang.String[] login(java.lang.String user, java.lang.String passwd) throws java.io.IOException
user
- the user loginpasswd
- must be md5 encrypted
java.io.IOException
- if an I/O exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |