com.silverpeas.peasUtil
Class RssServlet<T>
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.silverpeas.peasUtil.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
Method Summary |
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(AdminController admin,
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)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RssServlet
public RssServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
getChannelTitle
public String getChannelTitle(String instanceId)
getServerURL
public String getServerURL(AdminController admin,
String domainId)
isComponentRss
public boolean isComponentRss(String instanceId)
isComponentAvailable
public boolean isComponentAvailable(AdminController admin,
String instanceId,
String userId)
getNbReturnedElements
public int getNbReturnedElements()
getListElements
public abstract Collection<T> getListElements(String instanceId,
int nbReturned)
throws RemoteException
- Throws:
RemoteException
getElementTitle
public abstract String getElementTitle(T element,
String userId)
getElementLink
public abstract String getElementLink(T element,
String userId)
getElementDescription
public abstract String getElementDescription(T element,
String userId)
getElementDate
public abstract Date getElementDate(T element)
getElementCreatorId
public abstract String getElementCreatorId(T element)
getExternalCreatorId
public String getExternalCreatorId(T element)
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)
throws IOException
- Throws:
IOException
Copyright © 2016 Silverpeas. All Rights Reserved.