Java Doc for PlainRemoteResource.java in  » Web-Server » Jigsaw » org » w3c » jigsaw » admin » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Jigsaw » org.w3c.jigsaw.admin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.jigsaw.admin.PlainRemoteResource

PlainRemoteResource
public class PlainRemoteResource implements RemoteResource(Code)


Field Summary
protected  AdminContextadmin
    
protected  AttributeDescriptionattributes
     The remote resource set of attributes.
protected  ResourceDescriptiondescription
    
protected  RemoteResourceframes
     Set of attached frames.
protected  Stringidentifier
     The name of that resource (ie it's identifier attribute).
protected  booleanisDirectoryResource
    
protected  booleaniscontainer
    
protected  booleanisframed
    
protected  booleanisindexerscatalog
    
protected  URLparent
     The name of the parent of that resource, as an URL.
protected  URLurl
     The admin URL for the wrapped resource.
protected  Objectvalues
     The remote resource attribute values.

Constructor Summary
 PlainRemoteResource(AdminContext admin, URL parent, String identifier, ResourceDescription description)
    
 PlainRemoteResource(AdminContext admin, URL parent, URL url, String identifier, ResourceDescription description)
    

Method Summary
protected  voidcreateRemoteFrames()
    
protected  RequestcreateRequest()
    
public  voiddelete()
     Delete that resource, and detach it from its container.
public  voiddump(PrintStream prt)
     Dump that resource to the given output stream.
public  String[]enumerateResourceIdentifiers()
    
public synchronized  AttributeDescription[]getAttributes()
     Get the target resource list of attributes. This method returns the target resource attributes description.
public  String[]getClassHierarchy()
     Get the target resource class hierarchy. This method will return the class hierarchy as an array of String.
public  RemoteResource[]getFrames()
     Get the frames attached to that resource.
protected  InputStreamgetInputStream(Reply reply)
    
public  ObjectgetValue(String attr)
    
public  Object[]getValues(String attrs)
    
Parameters:
  attrs - The (ordered) set of attributes whose value is to befetched.
public  booleanisContainer()
    
public  booleanisDirectoryResource()
    
public  booleanisFrame()
    
protected  booleanisFrameURL(URL furl)
    
public  booleanisFramed()
    
public  booleanisIndexersCatalog()
    
public  RemoteResourceloadResource(String identifier)
    
protected  AttributeDescriptionlookupAttribute(String name)
    
public  RemoteResourceregisterFrame(String id, String classname)
     Attach a new frame to that resource.
Parameters:
  identifier - The name for this frame (if any).
Parameters:
  clsname - The name of the frame's class.
public  RemoteResourceregisterResource(String id, String classname)
     Register a new resource within this container.
public  voidreindex(boolean rec)
     Reindex the resource's children if this resource is a DirectoryResource.
protected  voidsetFrames(RemoteResource frames)
    
public  voidsetValue(String attr, Object value)
    
public  voidsetValues(String names, Object values)
     Set a set of attribute values in one shot.
public  voidunregisterFrame(RemoteResource frame)
     Unregister a given frame from that resource.
protected  voidupdate()
     reload the RemoteResource.
public  voidupdateURL(URL parentURL)
    

Field Detail
admin
protected AdminContext admin(Code)
The client side admin context



attributes
protected AttributeDescription attributes(Code)
The remote resource set of attributes.



description
protected ResourceDescription description(Code)
Our description



frames
protected RemoteResource frames(Code)
Set of attached frames.



identifier
protected String identifier(Code)
The name of that resource (ie it's identifier attribute).



isDirectoryResource
protected boolean isDirectoryResource(Code)
Is that resource a directory resource ?



iscontainer
protected boolean iscontainer(Code)
Is that resource a container resource ?



isframed
protected boolean isframed(Code)
Is that resource a framed resource ?



isindexerscatalog
protected boolean isindexerscatalog(Code)
Is that resource a indexers catalog ?



parent
protected URL parent(Code)
The name of the parent of that resource, as an URL.



url
protected URL url(Code)
The admin URL for the wrapped resource.



values
protected Object values(Code)
The remote resource attribute values.




Constructor Detail
PlainRemoteResource
PlainRemoteResource(AdminContext admin, URL parent, String identifier, ResourceDescription description)(Code)



PlainRemoteResource
PlainRemoteResource(AdminContext admin, URL parent, URL url, String identifier, ResourceDescription description)(Code)




Method Detail
createRemoteFrames
protected void createRemoteFrames()(Code)



createRequest
protected Request createRequest()(Code)



delete
public void delete() throws RemoteAccessException(Code)
Delete that resource, and detach it from its container.
exception:
  RemoteAccessException - If somenetwork failure occured.



dump
public void dump(PrintStream prt) throws RemoteAccessException(Code)
Dump that resource to the given output stream.
Parameters:
  prt - A print stream to dump to.
exception:
  RemoteAccessException - If somenetwork failure occured.



enumerateResourceIdentifiers
public String[] enumerateResourceIdentifiers() throws RemoteAccessException(Code)

exception:
  RemoteAccessException - If somenetwork failure occured.



getAttributes
public synchronized AttributeDescription[] getAttributes() throws RemoteAccessException(Code)
Get the target resource list of attributes. This method returns the target resource attributes description. The resulting array contains instances of the Attribute class, one item per described attributes.

Even though this returns all the attribute resources, only the ones that are advertized as being editable can be set through this interface. An array of Attribute.
exception:
  RemoteAccessException - If somenetwork failure occured.




getClassHierarchy
public String[] getClassHierarchy() throws RemoteAccessException(Code)
Get the target resource class hierarchy. This method will return the class hierarchy as an array of String. The first string in the array is the name of the resource class itself, the last string will always be java.lang.Object. A String array givimg the target resource's class description.
exception:
  RemoteAccessException - If somenetwork failure occured.



getFrames
public RemoteResource[] getFrames() throws RemoteAccessException(Code)
Get the frames attached to that resource. Each frame is itself a resource, so it is returned as an instance of a remote resource. A (posssibly null) array of frames attachedto that resource.
exception:
  RemoteAccessException - If somenetwork failure occured.



getInputStream
protected InputStream getInputStream(Reply reply) throws IOException(Code)



getValue
public Object getValue(String attr) throws RemoteAccessException(Code)

Parameters:
  name - The attribute whose value is to be fetched, encoded asits name.
exception:
  RemoteAccessException - If somenetwork failure occured.



getValues
public Object[] getValues(String attrs) throws RemoteAccessException(Code)

Parameters:
  attrs - The (ordered) set of attributes whose value is to befetched. An (ordered) set of values, one per queried attribute.
exception:
  RemoteAccessException - If somenetwork failure occured.



isContainer
public boolean isContainer() throws RemoteAccessException(Code)

exception:
  RemoteAccessException - If somenetwork failure occured.



isDirectoryResource
public boolean isDirectoryResource() throws RemoteAccessException(Code)
Is is a DirectoryResource
exception:
  RemoteAccessException - If somenetwork failure occured.



isFrame
public boolean isFrame()(Code)



isFrameURL
protected boolean isFrameURL(URL furl)(Code)



isFramed
public boolean isFramed() throws RemoteAccessException(Code)
Is this resource a framed resource ? A boolean, true if the resource is framedand it currently has some frames attached, falseotherwise.
exception:
  RemoteAccessException - If somenetwork failure occured.



isIndexersCatalog
public boolean isIndexersCatalog() throws RemoteAccessException(Code)

exception:
  RemoteAccessException - If somenetwork failure occured.



loadResource
public RemoteResource loadResource(String identifier) throws RemoteAccessException(Code)

exception:
  RemoteAccessException - If somenetwork failure occured.



lookupAttribute
protected AttributeDescription lookupAttribute(String name)(Code)



registerFrame
public RemoteResource registerFrame(String id, String classname) throws RemoteAccessException(Code)
Attach a new frame to that resource.
Parameters:
  identifier - The name for this frame (if any).
Parameters:
  clsname - The name of the frame's class. A remote handle to the (remotely) created frame instance.
exception:
  RemoteAccessException - If somenetwork failure occured.



registerResource
public RemoteResource registerResource(String id, String classname) throws RemoteAccessException(Code)
Register a new resource within this container.
Parameters:
  id - The identifier of the resource to be created.
Parameters:
  classname - The name of the class of the resource to be added.
exception:
  RemoteAccessException - If somenetwork failure occured.



reindex
public void reindex(boolean rec) throws RemoteAccessException(Code)
Reindex the resource's children if this resource is a DirectoryResource.
exception:
  RemoteAccessException - If it's not a DirectoryResource



setFrames
protected void setFrames(RemoteResource frames)(Code)



setValue
public void setValue(String attr, Object value) throws RemoteAccessException(Code)

Parameters:
  attr - The attribute to set, encoded as it's name.
Parameters:
  value - The new value for that attribute.
exception:
  RemoteAccessException - If somenetwork failure occured.



setValues
public void setValues(String names, Object values) throws RemoteAccessException(Code)
Set a set of attribute values in one shot. This method guarantees that either all setting is done, or none of them are.
Parameters:
  attrs - The (ordered) list of attribute to set, encoded as theirnames.
Parameters:
  values - The (ordered) list of values, for each of the aboveattributes.
exception:
  RemoteAccessException - If somenetwork failure occured.



unregisterFrame
public void unregisterFrame(RemoteResource frame) throws RemoteAccessException(Code)
Unregister a given frame from that resource.
Parameters:
  frame - The frame to unregister.
exception:
  RemoteAccessException - If somenetwork failure occured.



update
protected void update() throws RemoteAccessException(Code)
reload the RemoteResource.



updateURL
public void updateURL(URL parentURL)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.