Java Doc for XMLDBSource.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » source » impl » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.components.source.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.source.impl.XMLDBSource

XMLDBSource
public class XMLDBSource extends AbstractLogEnabled implements ModifiableTraversableSource,XMLizable(Code)
This class implements the xmldb:// pseudo-protocol and allows to get XML content from an XML:DB enabled XML database.
version:
   CVS $Id: XMLDBSource.java 579454 2007-09-26 03:48:46Z vgritsenko $


Field Summary
final protected static  StringCDATA
    
final protected static  StringCOLLECTION
    
final protected static  StringCOLLECTIONS
    
final protected static  StringCOLLECTION_BASE_ATTR
    
final protected static  StringCOLLECTION_COUNT_ATTR
    
final protected static  StringNAME_ATTR
    
final public static  StringPREFIX
    
final protected static  StringQCOLLECTION
    
final protected static  StringQCOLLECTIONS
    
final protected static  StringQRESOURCE
    
final protected static  StringQRESULT
    
final protected static  StringQRESULTSET
    
final protected static  StringQUERY_ATTR
    
final protected static  StringRESOURCE
    
final protected static  StringRESOURCE_COUNT_ATTR
    
final protected static  StringRESULT
    
final protected static  StringRESULTSET
    
final protected static  StringRESULTS_COUNT_ATTR
    
final protected static  StringRESULT_DOCID_ATTR
    
final protected static  StringRESULT_ID_ATTR
    
final public static  StringURI
    
protected  Stringpassword
    
protected  Stringquery
    
protected  Stringurl
    
protected  Stringuser
    

Constructor Summary
public  XMLDBSource(Logger logger, String user, String password, String srcUrl)
     The constructor.

Method Summary
public  booleancanCancel(OutputStream stream)
    
public  voidcancel(OutputStream stream)
     Cancel the data sent to an OutputStream returned by XMLDBSource.getOutputStream() .
public  StringcreateId()
     Create a new identifier for a resource within a collection.
public  voiddelete()
    
public  booleanexists()
    
public  OutputStreamgetBinaryOutputStream()
     Return an OutputStream to write data to a binary resource.
public  SourcegetChild(String name)
    
public  java.util.CollectiongetChildren()
    
public  longgetContentLength()
    
public  InputStreamgetInputStream()
     Get an InputSource for the given URL.
public  longgetLastModified()
    
public  StringgetMimeType()
    
public  StringgetName()
    
public  OutputStreamgetOutputStream()
     Return an OutputStream to write to.
public  SourcegetParent()
    
public  StringgetScheme()
    
public  StringgetURI()
    
public  SourceValiditygetValidity()
    
public  booleanisCollection()
    
public  voidmakeCollection()
    
public  voidrefresh()
    
public  voidtoSAX(ContentHandler handler)
     Stream SAX events to a given ContentHandler.

Field Detail
CDATA
final protected static String CDATA(Code)



COLLECTION
final protected static String COLLECTION(Code)
Element <collection>



COLLECTIONS
final protected static String COLLECTIONS(Code)
Root element <collections>



COLLECTION_BASE_ATTR
final protected static String COLLECTION_BASE_ATTR(Code)



COLLECTION_COUNT_ATTR
final protected static String COLLECTION_COUNT_ATTR(Code)
Attribute collections on the root element indicates count of collections in the collection



NAME_ATTR
final protected static String NAME_ATTR(Code)
Attribute name on the collection/resource element



PREFIX
final public static String PREFIX(Code)
Source prefix



QCOLLECTION
final protected static String QCOLLECTION(Code)
Element <xmldb:collection> (raw name)



QCOLLECTIONS
final protected static String QCOLLECTIONS(Code)
Root element <xmldb:collections> (raw name)



QRESOURCE
final protected static String QRESOURCE(Code)
Element <resource> (raw name)



QRESULT
final protected static String QRESULT(Code)
Element <xmldb:result> (raw name)



QRESULTSET
final protected static String QRESULTSET(Code)
Root element <xmldb:results> (raw name)



QUERY_ATTR
final protected static String QUERY_ATTR(Code)



RESOURCE
final protected static String RESOURCE(Code)
Element <resource>



RESOURCE_COUNT_ATTR
final protected static String RESOURCE_COUNT_ATTR(Code)
Attribute resources on the root element indicates count of resources in the collection



RESULT
final protected static String RESULT(Code)
Element <result>



RESULTSET
final protected static String RESULTSET(Code)
Root element <results>



RESULTS_COUNT_ATTR
final protected static String RESULTS_COUNT_ATTR(Code)



RESULT_DOCID_ATTR
final protected static String RESULT_DOCID_ATTR(Code)



RESULT_ID_ATTR
final protected static String RESULT_ID_ATTR(Code)



URI
final public static String URI(Code)
Source namespace



password
protected String password(Code)
The supplied password



query
protected String query(Code)
The part of URL after # sign



url
protected String url(Code)
The requested URL



user
protected String user(Code)
The supplied user




Constructor Detail
XMLDBSource
public XMLDBSource(Logger logger, String user, String password, String srcUrl)(Code)
The constructor.
Parameters:
  logger - the Logger instance.
Parameters:
  user - username
Parameters:
  password - password
Parameters:
  srcUrl - the URL being queried.




Method Detail
canCancel
public boolean canCancel(OutputStream stream)(Code)
Can the data sent to an OutputStream returned by XMLDBSource.getOutputStream() be cancelled ? true if the stream can be cancelled



cancel
public void cancel(OutputStream stream) throws IOException(Code)
Cancel the data sent to an OutputStream returned by XMLDBSource.getOutputStream() .

After cancelling, the stream should no longer be used.




createId
public String createId() throws SourceException(Code)
Create a new identifier for a resource within a collection. The current source must be an existing collection.
throws:
  SourceException - if collection does not exist or failed to create id



delete
public void delete() throws SourceException(Code)
Delete the source



exists
public boolean exists()(Code)



getBinaryOutputStream
public OutputStream getBinaryOutputStream() throws IOException, MalformedURLException(Code)
Return an OutputStream to write data to a binary resource.



getChild
public Source getChild(String name) throws SourceException(Code)



getChildren
public java.util.Collection getChildren() throws SourceException(Code)



getContentLength
public long getContentLength()(Code)



getInputStream
public InputStream getInputStream() throws IOException(Code)
Get an InputSource for the given URL.



getLastModified
public long getLastModified()(Code)



getMimeType
public String getMimeType()(Code)



getName
public String getName()(Code)



getOutputStream
public OutputStream getOutputStream() throws IOException, MalformedURLException(Code)
Return an OutputStream to write to. This method expects an XML document to be written in that stream. To create a binary resource, use XMLDBSource.getBinaryOutputStream() .



getParent
public Source getParent() throws SourceException(Code)



getScheme
public String getScheme()(Code)



getURI
public String getURI()(Code)



getValidity
public SourceValidity getValidity()(Code)



isCollection
public boolean isCollection()(Code)



makeCollection
public void makeCollection() throws SourceException(Code)



refresh
public void refresh()(Code)



toSAX
public void toSAX(ContentHandler handler) throws SAXException(Code)
Stream SAX events to a given ContentHandler. If the requested resource is a collection, build an XML view of it.



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