Class RssServlet<T>
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.silverpeas.core.web.util.servlet.RssServlet<T>
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
AgendaRssServlet
public abstract class RssServlet<T> extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RssServlet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
void
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
String
getChannelTitle(String instanceId)
abstract String
getElementCreatorId(T element)
abstract Date
getElementDate(T element)
abstract String
getElementDescription(T element, String userId)
abstract String
getElementLink(T element, String userId)
abstract String
getElementTitle(T element, String userId)
String
getExternalCreatorId(T element)
abstract Collection<T>
getListElements(String instanceId, int nbReturned)
protected String
getLogin(javax.servlet.http.HttpServletRequest request)
protected MainSessionController
getMainSessionController(javax.servlet.http.HttpServletRequest req)
int
getNbReturnedElements()
protected String
getObjectId(javax.servlet.http.HttpServletRequest request)
protected String
getPassword(javax.servlet.http.HttpServletRequest request)
String
getServerURL(AdminController admin, String domainId)
protected String
getUserId(javax.servlet.http.HttpServletRequest request)
boolean
isComponentAvailable(String instanceId, String userId)
boolean
isComponentRss(String instanceId)
protected boolean
isUserLogin(javax.servlet.http.HttpServletRequest req)
protected void
objectNotFound(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
protected void
setCreator(T element, String creatorId, com.rometools.rome.feed.synd.SyndEntry entry)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
-
setCreator
protected void setCreator(T element, String creatorId, com.rometools.rome.feed.synd.SyndEntry entry)
-
getServerURL
public String getServerURL(AdminController admin, String domainId)
-
isComponentRss
public boolean isComponentRss(String instanceId)
-
getNbReturnedElements
public int getNbReturnedElements()
-
getListElements
public abstract Collection<T> getListElements(String instanceId, int nbReturned) throws RemoteException
- Throws:
RemoteException
-
getObjectId
protected String getObjectId(javax.servlet.http.HttpServletRequest request)
-
getUserId
protected String getUserId(javax.servlet.http.HttpServletRequest request)
-
getLogin
protected String getLogin(javax.servlet.http.HttpServletRequest request)
-
getPassword
protected String getPassword(javax.servlet.http.HttpServletRequest request)
-
getMainSessionController
protected MainSessionController getMainSessionController(javax.servlet.http.HttpServletRequest req)
-
isUserLogin
protected boolean isUserLogin(javax.servlet.http.HttpServletRequest req)
-
objectNotFound
protected void objectNotFound(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
-
-