|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigsaw.admin.AdminContext
public class AdminContext
The client side Admin context.
Field Summary | |
---|---|
protected java.util.Hashtable |
cachedattrs
Cached attribute descriptions: |
static MimeType |
conftype
|
protected HttpCredential |
credential
The credential used for authentification |
static boolean |
debug
|
protected HttpManager |
http
The HTTP manager used to access the remote admin server. |
protected org.w3c.jigsaw.admin.AdminReader |
reader
The Admin protocol decoder. |
protected RemoteResource |
root
The RemoteRoot resource for all administered servers. |
protected java.net.URL |
server
The root URL for the target admin serv(l)er |
protected org.w3c.jigsaw.admin.AdminWriter |
writer
The Admin protocol encoder. |
Constructor Summary | |
---|---|
AdminContext(java.net.URL server)
Connect to the given admin server. |
Method Summary | |
---|---|
RemoteResource |
getAdminResource()
Get the root admin for all servers managed by target admin server. |
protected java.lang.String |
getContent(Reply reply)
|
protected java.io.InputStream |
getInputStream(Reply reply)
|
void |
initialize()
initialize the context |
protected void |
loadRoot()
Query the admin server for its main root resource. |
static void |
main(java.lang.String[] args)
|
protected Reply |
runRequest(Request request)
Run the given (tunneling) HTTP request. |
void |
setCredential(HttpCredential cr)
sets the credential to be used for authentification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean debug
public static MimeType conftype
protected java.util.Hashtable cachedattrs
protected java.net.URL server
protected RemoteResource root
protected HttpManager http
protected org.w3c.jigsaw.admin.AdminReader reader
protected org.w3c.jigsaw.admin.AdminWriter writer
protected HttpCredential credential
Constructor Detail |
---|
public AdminContext(java.net.URL server) throws RemoteAccessException
RemoteAccessException
- if a remote access error occurs.Method Detail |
---|
protected java.io.InputStream getInputStream(Reply reply) throws java.io.IOException
java.io.IOException
protected java.lang.String getContent(Reply reply)
protected Reply runRequest(Request request) throws RemoteAccessException
request
- The request ti run.
RemoteAccessException
- If some network error occurs.protected void loadRoot() throws RemoteAccessException
RemoteAccessException
- If some network error occurs.public RemoteResource getAdminResource() throws RemoteAccessException
RemoteAccessException
- If target server is unreachable.public void setCredential(HttpCredential cr)
public void initialize() throws RemoteAccessException
RemoteAccessException
- if a remote access error occurs.public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |