Java Doc for RollerAtomHandler.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » webservices » atomprotocol » 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 » Blogger System » apache roller 3.1 » org.apache.roller.webservices.atomprotocol 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.roller.webservices.atomprotocol.RollerAtomHandler

RollerAtomHandler
public class RollerAtomHandler implements AtomHandler(Code)
Roller's Atom Protocol implementation.
 Each Roller workspace has two collections, one that accepts entries and 
 that accepts everything. The entries collection represents the weblog 
 entries in a single weblog and the everything collection represents that 
 weblog's uploaded-files. 
 Here are the APP URIs suppored by Roller:
 /roller-services/app
 Introspection doc
 /roller-services/app//entries
 Entry collection for a blog
 /roller-services/app//entries/
 Entry collection for a blog, with offset
 /roller-services/app//entry/
 Individual entry (i.e. edit URI)
 /roller-services/app//resources
 Resource (i.e. file-uploads) collection for a blog
 /roller-services/app//resources/
 Resource collection for a blog, with offset
 /roller-services/app//resource/*.media-link
 Individual resource metadata (i.e. edit URI)
 /roller-services/app//resource/
 Individual resource data (i.e. media-edit URI)
 

author:
   David M Johnson



Constructor Summary
public  RollerAtomHandler(HttpServletRequest request)
     Create Atom handler for a request and attempt to authenticate user.

Method Summary
public  StringauthenticateBASIC(HttpServletRequest request)
     BASIC authentication.
protected  StringauthenticateWSSE(HttpServletRequest request)
     Perform WSSE authentication based on information in request.
public  voiddeleteEntry(String[] pathInfo)
    
public  StringgetAuthenticatedUsername()
     Return weblogHandle of authenticated user or null if there is none.
public  FeedgetCollection(String[] pathInfo)
     Return collection specified by pathinfo.
public  FeedgetCollectionOfEntries(String[] pathInfo, int start, int max)
     Helper method that returns collection of entries, called by getCollection().
public  FeedgetCollectionOfResources(String[] pathInfo, int start, int max)
     Helper method that returns collection of resources, called by getCollection().
public  EntrygetEntry(String[] pathInfo)
    
public  AtomServicegetIntrospection()
     Return Atom service document for site, getting blog-name from pathInfo.
public  booleanisCategoryURI(String[] pathInfo)
     True if URL is a category URI.
public  booleanisCollectionURI(String[] pathInfo)
     True if URL is a collection URI of any sort.
public  booleanisEntryURI(String[] pathInfo)
     True if URL is a entry URI.
public  booleanisIntrospectionURI(String[] pathInfo)
     True if URL is the introspection URI.
public  booleanisMediaEditURI(String[] pathInfo)
     True if URL is media edit URI.
public  EntrypostEntry(String[] pathInfo, Entry entry)
     Create entry in the entry collection (a Roller blog has only one).
public  EntrypostMedia(String[] pathInfo, String title, String slug, String contentType, InputStream is)
     Create new resource in generic collection (a Roller blog has only one).
public  EntryputEntry(String[] pathInfo, Entry entry)
    
public  EntryputMedia(String[] pathInfo, String contentType, InputStream is)
     Update resource specified by pathInfo using data from input stream.


Constructor Detail
RollerAtomHandler
public RollerAtomHandler(HttpServletRequest request)(Code)
Create Atom handler for a request and attempt to authenticate user. If user is authenticated, then getAuthenticatedUsername() will return then user's name, otherwise it will return null.




Method Detail
authenticateBASIC
public String authenticateBASIC(HttpServletRequest request)(Code)
BASIC authentication.



authenticateWSSE
protected String authenticateWSSE(HttpServletRequest request)(Code)
Perform WSSE authentication based on information in request. Will not work if Roller password encryption is turned on.



deleteEntry
public void deleteEntry(String[] pathInfo) throws AtomException(Code)
Delete entry, URI like this /blog-name/entry/id



getAuthenticatedUsername
public String getAuthenticatedUsername()(Code)
Return weblogHandle of authenticated user or null if there is none.



getCollection
public Feed getCollection(String[] pathInfo) throws AtomException(Code)
Return collection specified by pathinfo.
 Supports these URI forms:
 //entries
 //entries/offset
 //resources
 //resources/offset
 



getCollectionOfEntries
public Feed getCollectionOfEntries(String[] pathInfo, int start, int max) throws AtomException(Code)
Helper method that returns collection of entries, called by getCollection().



getCollectionOfResources
public Feed getCollectionOfResources(String[] pathInfo, int start, int max) throws AtomException(Code)
Helper method that returns collection of resources, called by getCollection().



getEntry
public Entry getEntry(String[] pathInfo) throws AtomException(Code)
Retrieve entry, URI like this /blog-name/entry/id



getIntrospection
public AtomService getIntrospection() throws AtomException(Code)
Return Atom service document for site, getting blog-name from pathInfo. The workspace will contain collections for entries, categories and resources.



isCategoryURI
public boolean isCategoryURI(String[] pathInfo)(Code)
True if URL is a category URI.



isCollectionURI
public boolean isCollectionURI(String[] pathInfo)(Code)
True if URL is a collection URI of any sort.



isEntryURI
public boolean isEntryURI(String[] pathInfo)(Code)
True if URL is a entry URI.



isIntrospectionURI
public boolean isIntrospectionURI(String[] pathInfo)(Code)
True if URL is the introspection URI.



isMediaEditURI
public boolean isMediaEditURI(String[] pathInfo)(Code)
True if URL is media edit URI. Media can be udpated, but not metadata.



postEntry
public Entry postEntry(String[] pathInfo, Entry entry) throws AtomException(Code)
Create entry in the entry collection (a Roller blog has only one).



postMedia
public Entry postMedia(String[] pathInfo, String title, String slug, String contentType, InputStream is) throws AtomException(Code)
Create new resource in generic collection (a Roller blog has only one). TODO: can we avoid saving temporary file? TODO: do we need to handle mutli-part MIME uploads? TODO: use Jakarta Commons File-upload?



putEntry
public Entry putEntry(String[] pathInfo, Entry entry) throws AtomException(Code)
Update entry, URI like this /blog-name/entry/id



putMedia
public Entry putMedia(String[] pathInfo, String contentType, InputStream is) throws AtomException(Code)
Update resource specified by pathInfo using data from input stream. Expects pathInfo of form /blog-name/resource/name



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.