All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.admin.AdminContext

java.lang.Object
   |
   +----w3c.jigsaw.admin.AdminContext

public class AdminContext
extends Object
The client side Admin context.


Variable Index

 o cachedattrs
Cached attribute descriptions:
 o conftype
 o credential
The credential used for authentification
 o http
The HTTP manager used to access the remote admin server.
 o reader
The Admin protocol decoder.
 o root
The RemoteRoot resource for all administered servers.
 o server
The root URL for the target admin serv(l)er

Constructor Index

 o AdminContext(URL)
Connect to the given admin server.

Method Index

 o getAdminResource()
Get the root admin for all servers managed by target admin server.
 o getAttributes(String)
Get the set of attributes for the given class.
 o initialize()
 o loadRoot()
Query the admin server for its main root resource.
 o main(String[])
 o runRequest(Request)
Run the given (tunneling) HTTP request.
 o setCredential(HttpCredential)
sets the credential to be used for authentification

Variables

 o conftype
 public static MimeType conftype
 o cachedattrs
 protected Hashtable cachedattrs
Cached attribute descriptions:

 o server
 protected URL server
The root URL for the target admin serv(l)er

 o root
 protected RemoteResource root
The RemoteRoot resource for all administered servers.

 o http
 protected HttpManager http
The HTTP manager used to access the remote admin server.

 o reader
 protected AdminReader reader
The Admin protocol decoder.

 o credential
 protected HttpCredential credential
The credential used for authentification

Constructors

 o AdminContext
 public AdminContext(URL server) throws RemoteAccessException
Connect to the given admin server.

Methods

 o runRequest
 protected Reply runRequest(Request request) throws RemoteAccessException
Run the given (tunneling) HTTP request. This method will check that the appropriate MIME types are used.

Parameters:
request - The request ti run.
Returns:
A Reply instance.
Throws: RemoteAccessException
If some network error occurs.
 o loadRoot
 protected synchronized void loadRoot() throws RemoteAccessException
Query the admin server for its main root resource.

Throws: RemoteAccessException
If some network error occurs.
 o getAttributes
 public Attribute[] getAttributes(String clsname) throws RemoteAccessException, InvalidResourceClass
Get the set of attributes for the given class.

Parameters:
clsname - The class name.
Returns:
An array of attributes.
Throws: RemoteAccessException
If a network error occurs.
Throws: InvalidResourceClass
If that resource class is unknown.
 o getAdminResource
 public synchronized RemoteResource getAdminResource() throws RemoteAccessException
Get the root admin for all servers managed by target admin server.

Returns:
A RemoteResource instance.
Throws: RemoteAccessException
If target server is unreachable.
 o setCredential
 public void setCredential(HttpCredential cr)
sets the credential to be used for authentification

 o initialize
 public void initialize() throws RemoteAccessException
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index