    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.admin.AdminContext

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

public class AdminContext
extends Object

The client side Admin context.

##

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

##

AdminContext(URL)
  Connect to the given admin server.

##

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

##

conftype

     public static MimeType conftype

cachedattrs

     protected Hashtable cachedattrs

  Cached attribute descriptions:

server

     protected URL server

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

root

     protected RemoteResource root

  The RemoteRoot resource for all administered servers.

http

     protected HttpManager http

  The HTTP manager used to access the remote admin server.

reader

     protected AdminReader reader

  The Admin protocol decoder.

credential

     protected HttpCredential credential

  The credential used for authentification

##

AdminContext

     public AdminContext(URL server) throws RemoteAccessException

  Connect to the given admin server.

##

getContent

     protected String getContent(Reply reply)

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.

loadRoot

     protected synchronized void loadRoot() throws RemoteAccessException

  Query the admin server for its main root resource.

  Throws: RemoteAccessException
    If some network error occurs.

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.

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.

setCredential

     public void setCredential(HttpCredential cr)

  sets the credential to be used for authentification

initialize

     public void initialize() throws RemoteAccessException

main

     public static void main(String args[])

    All Packages  Class Hierarchy  This Package  Previous  Next  Index