|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.jigsaw.admin.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 |
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. |
Attribute[] |
getAttributes(java.lang.String clsname)
Get the set of attributes for the given class. |
protected java.lang.String |
getContent(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 HttpCredential credential
Constructor Detail |
public AdminContext(java.net.URL server) throws RemoteAccessException
Method Detail |
protected java.lang.String getContent(Reply reply)
protected Reply runRequest(Request request) throws RemoteAccessException
request
- The request ti run.protected void loadRoot() throws RemoteAccessException
public Attribute[] getAttributes(java.lang.String clsname) throws RemoteAccessException, InvalidResourceClass
clsname
- The class name.public RemoteResource getAdminResource() throws RemoteAccessException
public void setCredential(HttpCredential cr)
public void initialize() throws RemoteAccessException
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |