HttpServlet
A servlet which can handle cleaning up campaigns.
This supports the following servlet parameters:
campaignId
: the id/uri of the campaign.
cleanup
: this multi-valued parameter can one or more of
the following values:
It alse expects the following ejb-refs:
If all the request cleanups succeed, a OK (200) status code will be returned. If one or more failed, a INTERNAL_ERROR (500) status code will be returned, plus the header 'BEA-CAMPAIGN-Cleanup-Failures' will be set to the comma-separate list of cleanUp values that failed.
Object
GenericServlet
HttpServlet
CampaignCleanupServlet
Serializable
, Servlet
, ServletConfig
Field Summary |
protected static final int |
|
protected static final int |
|
protected static final int |
|
protected static final int |
|
protected static final int |
|
public static final |
|
public static final |
|
public static final |
|
Constructor Summary |
Method Summary |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
public void |
|
public void |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected int |
|
public void |
|
protected void |
|
protected void |
|
protected static |
Methods from javax.servlet.http. |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods from javax.servlet. |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, service |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface javax.servlet. |
destroy, getServletConfig, getServletInfo, init, service |
Methods from interface javax.servlet. |
getInitParameter, getInitParameterNames, getServletContext, getServletName |
Field Detail |
protected static final int CLEANUP_AD_BUCKETS
protected static final int CLEANUP_AD_COUNTS
protected static final int CLEANUP_ALL
protected static final int CLEANUP_END_STATES
protected static final int CLEANUP_MAIL_BATCHES
public static final String
FAILED_REFRESH
public static final String
REFRESH_STATUS
public static final String
SUCCESSFUL_REFRESH
Constructor Detail |
public CampaignCleanupServlet()
Method Detail |
protected void cleanupAdBuckets(Cleanup a campaign's ad buckets.String
campaignId)
throwsCreateException
,EJBException
,RemoteException
,ContentException
CreateException
EJBException
RemoteException
ContentException
Related Topics
AdBucketService.cleanupAdBucket(String)
protected void cleanupAdCounts(Cleanup a campaign's ad count.String
campaignId)
throwsCreateException
,EJBException
,RemoteException
,ContentException
CreateException
EJBException
RemoteException
ContentException
Related Topics
AdService.cleanupAdService(String)
protected void cleanupEndStates(Cleanup a campaign's end states.String
campaignId)
throwsCreateException
,EJBException
,RemoteException
CreateException
EJBException
RemoteException
Related Topics
CampaignService.clearEndStates(String)
protected void cleanupMailBatches(Cleanup a campaign's mail batches.String
campaignId)
throwsCreateException
,EJBException
,RemoteException
,MailServiceException
CreateException
EJBException
RemoteException
MailServiceException
Related Topics
MailService.deleteBatch(String)
public void doGet(Service a request.HttpServletRequest
req,HttpServletResponse
resp)
throwsServletException
,IOException
HttpServlet.doGet(HttpServletRequest, HttpServletResponse)
ServletException
IOException
public void doPost(Service a request.HttpServletRequest
req,HttpServletResponse
resp)
throwsServletException
,IOException
HttpServlet.doPost(HttpServletRequest, HttpServletResponse)
ServletException
IOException
Related Topics
CampaignCleanupServlet.doGet(HttpServletRequest, HttpServletResponse)
protectedGet our java:comp/env/ejb/AdBucketService.AdBucketService
getAdBucketService()
throwsCreateException
,RemoteException
This will use the ejb-ref if getCampaignService().getAdBucketService() fails.
CreateException
RemoteException
protectedGet our java:comp/env/ejb/AdService.AdService
getAdService()
throwsCreateException
,RemoteException
This will use the ejb-ref if getCampaignService().getAdService() fails.
CreateException
RemoteException
protectedGet our java:comp/env/ejb/CampaignService.CampaignService
getCampaignService()
throwsCreateException
,RemoteException
CreateException
RemoteException
protectedGet our java:comp/env/ejb/MailService.MailService
getMailService()
throwsCreateException
,RemoteException
This will use the ejb-ref if getCampaignService().getMailService() fails.
CreateException
RemoteException
protected int handleCleanup(String
campaignId,
int options)
Handle the request cleanup options.
public void init()Initialize this servlet.
throwsServletException
This will initialize the various services.
GenericServlet.init()
ServletException
Related Topics
CampaignCleanupServlet.getCampaignService()
CampaignCleanupServlet.getAdBucketService()
CampaignCleanupServlet.getAdService()
CampaignCleanupServlet.getMailService()
protected void resetCampaign(Reset a campaign's internal state.String
campaignId)
throwsCreateException
,EJBException
,RemoteException
CreateException
EJBException
RemoteException
Related Topics
CampaignService.resetCampaign(String)
protected void sendError(Send an error message.HttpServletResponse
resp, int status,String
mesg)
throwsServletException
,IOException
ServletException
IOException
protected staticConvert a string to html.String
toHTML(String
in)
Related Topics