org.wso2.registry.announcement
Class Announcement

java.lang.Object
  extended by org.wso2.registry.announcement.Announcement

public class Announcement
extends java.lang.Object

Announcements of WSO2 family of projects will be sent out to the specific requestor. This would only rely on JDK 1.5 and its DOM imples


Constructor Summary
Announcement()
           
 
Method Summary
 java.lang.String get(java.lang.String id, java.lang.String announcement)
          This method will return a string based on the "announcement" URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Announcement

public Announcement()
Method Detail

get

public java.lang.String get(java.lang.String id,
                            java.lang.String announcement)
This method will return a string based on the "announcement" URL. Following is the state space associated with this method.

Internally content will be obtain by HTTP GET interface. If the process is executed successfully the return string will be cached in announcementCache with the key "announcement". For all successive similar announcement urls, if content is available in announcementCache, it will be send back to the users if and only if the time to live (TTL) does not exceed. Default TTL is 24 hours. For all other error or exception that could result with in the system will cause to send back NULL object for the given "announcement". In this implementation, error will not be recorded.

Parameters:
id - id or uuid that send with the announcement when fetch or re-fetch the url in ?start or ?refresh query parameter iff id is not NULL
announcement - URL to be located
Returns:
String {Serialized XML}


Copyright © 2007 Apache Web Services Project. All Rights Reserved.