Java Doc for Channel.java in  » RSS-RDF » nntp-rss » org » methodize » nntprss » rss » 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 » RSS RDF » nntp rss » org.methodize.nntprss.rss 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.methodize.nntprss.rss.Channel

Channel
public class Channel implements Runnable(Code)

author:
   Jason Brome
version:
   $Id: Channel.java,v 1.9 2003/03/22 17:21:27 jasonbrome Exp $


Field Summary
final public static  longDEFAULT_POLLING_INTERVAL
    
final public static  intSTATUS_CONNECTION_TIMEOUT
    
final public static  intSTATUS_INVALID_CONTENT
    
final public static  intSTATUS_NOT_FOUND
    
final public static  intSTATUS_NO_ROUTE_TO_HOST
    
final public static  intSTATUS_OK
    
final public static  intSTATUS_SOCKET_EXCEPTION
    
final public static  intSTATUS_UNKNOWN_HOST
    

Constructor Summary
public  Channel(String name, String urlString)
    

Method Summary
public  voidcheckConnection()
     Checks any current http connection. Called from the Channel Poller's thread - will invoke disconnect on the HttpUrlConnection is the poll has exceeded 5 minutes.
public  StringgetAuthor()
     Returns the author.
public  DategetCreated()
     Returns the created.
public  StringgetDescription()
     Returns the description.
public  intgetFirstArticleNumber()
     Returns the firstArticleNumber.
public  intgetId()
     Returns the id.
public  intgetLastArticleNumber()
     Returns the lastArticleNumber.
public  StringgetLastETag()
     Returns the lastETag.
public  longgetLastModified()
     Returns the lastModified.
public  DategetLastPolled()
     Returns the lastPolled.
public  StringgetLink()
     Returns the link.
public  StringgetManagingEditor()
     Returns the managingEditor.
public  StringgetName()
     Returns the name.
public  longgetPollingIntervalSeconds()
     Returns the pollingIntervalSeconds.
public  StringgetPublishAPI()
     Returns the publishAPI.
public  MapgetPublishConfig()
     Returns the publishConfig.
public  StringgetRssVersion()
     Returns the rssVersion.
public  intgetStatus()
     Returns the status.
public  StringgetTitle()
     Returns the title.
public  intgetTotalArticles()
     Returns the totalArticles.
public  StringgetUrl()
     Returns the url.
public  booleanisAwaitingPoll()
    
public  booleanisEnabled()
     Returns the enabled.
public  booleanisHistorical()
     Returns the historical.
public  booleanisParseAtAllCost()
     Returns the parseAtAllCost.
public  booleanisPolling()
     Returns the polling.
public  booleanisPostingEnabled()
     Returns the postingEnabled.
public static  booleanisValid(URL url)
    
public  booleanisValid()
    
public synchronized  voidpoll()
    
public  voidrun()
    
public  voidsave()
    
public  voidsetAuthor(String author)
     Sets the author.
public  voidsetCreated(Date created)
     Sets the created.
public  voidsetDescription(String description)
     Sets the description.
public  voidsetEnabled(boolean enabled)
     Sets the enabled.
public  voidsetFirstArticleNumber(int firstArticleNumber)
     Sets the firstArticleNumber.
public  voidsetHistorical(boolean historical)
     Sets the historical.
public  voidsetId(int id)
     Sets the id.
public  voidsetLastArticleNumber(int lastArticleNumber)
     Sets the lastArticleNumber.
public  voidsetLastETag(String lastETag)
     Sets the lastETag.
public  voidsetLastModified(long lastModified)
     Sets the lastModified.
public  voidsetLastPolled(Date lastPolled)
     Sets the lastPolled.
public  voidsetLink(String link)
     Sets the link.
public  voidsetManagingEditor(String managingEditor)
     Sets the managingEditor.
public  voidsetParseAtAllCost(boolean parseAtAllCost)
     Sets the parseAtAllCost.
public  voidsetPollingIntervalSeconds(long pollingIntervalSeconds)
     Sets the pollingIntervalSeconds.
public  voidsetPostingEnabled(boolean postingEnabled)
     Sets the postingEnabled.
public  voidsetPublishAPI(String publishAPI)
     Sets the publishAPI.
public  voidsetPublishConfig(Map publishConfig)
     Sets the publishConfig.
public  voidsetRssVersion(String rssVersion)
     Sets the rssVersion.
public  voidsetStatus(int status)
     Sets the status.
public  voidsetTitle(String title)
     Sets the title.
public  voidsetTotalArticles(int totalArticles)
     Sets the totalArticles.
public  voidsetUrl(URL url)
     Sets the url.

Field Detail
DEFAULT_POLLING_INTERVAL
final public static long DEFAULT_POLLING_INTERVAL(Code)



STATUS_CONNECTION_TIMEOUT
final public static int STATUS_CONNECTION_TIMEOUT(Code)



STATUS_INVALID_CONTENT
final public static int STATUS_INVALID_CONTENT(Code)



STATUS_NOT_FOUND
final public static int STATUS_NOT_FOUND(Code)



STATUS_NO_ROUTE_TO_HOST
final public static int STATUS_NO_ROUTE_TO_HOST(Code)



STATUS_OK
final public static int STATUS_OK(Code)



STATUS_SOCKET_EXCEPTION
final public static int STATUS_SOCKET_EXCEPTION(Code)



STATUS_UNKNOWN_HOST
final public static int STATUS_UNKNOWN_HOST(Code)




Constructor Detail
Channel
public Channel(String name, String urlString) throws MalformedURLException(Code)




Method Detail
checkConnection
public void checkConnection()(Code)
Checks any current http connection. Called from the Channel Poller's thread - will invoke disconnect on the HttpUrlConnection is the poll has exceeded 5 minutes. This'll cause an exception to be thrown in the polling thread, within the poll method. It'd be preferable to use the timeout setting feature within HttpUrlConnection, but this is only a parameter in the 1.4 release of the JRE.



getAuthor
public String getAuthor()(Code)
Returns the author. String



getCreated
public Date getCreated()(Code)
Returns the created. Date



getDescription
public String getDescription()(Code)
Returns the description. String



getFirstArticleNumber
public int getFirstArticleNumber()(Code)
Returns the firstArticleNumber. long



getId
public int getId()(Code)
Returns the id. int



getLastArticleNumber
public int getLastArticleNumber()(Code)
Returns the lastArticleNumber. long



getLastETag
public String getLastETag()(Code)
Returns the lastETag. String



getLastModified
public long getLastModified()(Code)
Returns the lastModified. long



getLastPolled
public Date getLastPolled()(Code)
Returns the lastPolled. Date



getLink
public String getLink()(Code)
Returns the link. String



getManagingEditor
public String getManagingEditor()(Code)
Returns the managingEditor. String



getName
public String getName()(Code)
Returns the name. String



getPollingIntervalSeconds
public long getPollingIntervalSeconds()(Code)
Returns the pollingIntervalSeconds. long



getPublishAPI
public String getPublishAPI()(Code)
Returns the publishAPI. String



getPublishConfig
public Map getPublishConfig()(Code)
Returns the publishConfig. Map



getRssVersion
public String getRssVersion()(Code)
Returns the rssVersion. String



getStatus
public int getStatus()(Code)
Returns the status. int



getTitle
public String getTitle()(Code)
Returns the title. String



getTotalArticles
public int getTotalArticles()(Code)
Returns the totalArticles. int



getUrl
public String getUrl()(Code)
Returns the url. String



isAwaitingPoll
public boolean isAwaitingPoll()(Code)



isEnabled
public boolean isEnabled()(Code)
Returns the enabled. boolean



isHistorical
public boolean isHistorical()(Code)
Returns the historical. boolean



isParseAtAllCost
public boolean isParseAtAllCost()(Code)
Returns the parseAtAllCost. boolean



isPolling
public boolean isPolling()(Code)
Returns the polling. boolean



isPostingEnabled
public boolean isPostingEnabled()(Code)
Returns the postingEnabled. boolean



isValid
public static boolean isValid(URL url)(Code)
Simple channel validation - ensures URL is valid, XML document is returned, and document has an rss root element with a version, or rdf root element,



isValid
public boolean isValid()(Code)
Validates the channel



poll
public synchronized void poll()(Code)
Retrieves the latest RSS doc from the remote site



run
public void run()(Code)

See Also:   java.lang.Runnable.run



save
public void save()(Code)



setAuthor
public void setAuthor(String author)(Code)
Sets the author.
Parameters:
  author - The author to set



setCreated
public void setCreated(Date created)(Code)
Sets the created.
Parameters:
  created - The created to set



setDescription
public void setDescription(String description)(Code)
Sets the description.
Parameters:
  description - The description to set



setEnabled
public void setEnabled(boolean enabled)(Code)
Sets the enabled.
Parameters:
  enabled - The enabled to set



setFirstArticleNumber
public void setFirstArticleNumber(int firstArticleNumber)(Code)
Sets the firstArticleNumber.
Parameters:
  firstArticleNumber - The firstArticleNumber to set



setHistorical
public void setHistorical(boolean historical)(Code)
Sets the historical.
Parameters:
  historical - The historical to set



setId
public void setId(int id)(Code)
Sets the id.
Parameters:
  id - The id to set



setLastArticleNumber
public void setLastArticleNumber(int lastArticleNumber)(Code)
Sets the lastArticleNumber.
Parameters:
  lastArticleNumber - The lastArticleNumber to set



setLastETag
public void setLastETag(String lastETag)(Code)
Sets the lastETag.
Parameters:
  lastETag - The lastETag to set



setLastModified
public void setLastModified(long lastModified)(Code)
Sets the lastModified.
Parameters:
  lastModified - The lastModified to set



setLastPolled
public void setLastPolled(Date lastPolled)(Code)
Sets the lastPolled.
Parameters:
  lastPolled - The lastPolled to set



setLink
public void setLink(String link)(Code)
Sets the link.
Parameters:
  link - The link to set



setManagingEditor
public void setManagingEditor(String managingEditor)(Code)
Sets the managingEditor.
Parameters:
  managingEditor - The managingEditor to set



setParseAtAllCost
public void setParseAtAllCost(boolean parseAtAllCost)(Code)
Sets the parseAtAllCost.
Parameters:
  parseAtAllCost - The parseAtAllCost to set



setPollingIntervalSeconds
public void setPollingIntervalSeconds(long pollingIntervalSeconds)(Code)
Sets the pollingIntervalSeconds.
Parameters:
  pollingIntervalSeconds - The pollingIntervalSeconds to set



setPostingEnabled
public void setPostingEnabled(boolean postingEnabled)(Code)
Sets the postingEnabled.
Parameters:
  postingEnabled - The postingEnabled to set



setPublishAPI
public void setPublishAPI(String publishAPI)(Code)
Sets the publishAPI.
Parameters:
  publishAPI - The publishAPI to set



setPublishConfig
public void setPublishConfig(Map publishConfig)(Code)
Sets the publishConfig.
Parameters:
  publishConfig - The publishConfig to set



setRssVersion
public void setRssVersion(String rssVersion)(Code)
Sets the rssVersion.
Parameters:
  rssVersion - The rssVersion to set



setStatus
public void setStatus(int status)(Code)
Sets the status.
Parameters:
  status - The status to set



setTitle
public void setTitle(String title)(Code)
Sets the title.
Parameters:
  title - The title to set



setTotalArticles
public void setTotalArticles(int totalArticles)(Code)
Sets the totalArticles.
Parameters:
  totalArticles - The totalArticles to set



setUrl
public void setUrl(URL url)(Code)
Sets the url.
Parameters:
  url - The url to set



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.