public class MailImporterServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
MailImporterServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Process an email import request.
|
protected void |
importMessages(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
javax.mail.internet.MimeMessage message,
MailImporterConfig config)
Import new messages from message store.
|
protected void |
importMessages(String providerName,
String segmentName)
Import messages to segment.
|
void |
init(javax.servlet.ServletConfig config) |
protected void |
notifyAdmin(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName,
short importance,
String subject,
String message,
String[] params)
Send notification to segment admin.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void notifyAdmin(javax.jdo.PersistenceManager pm, String providerName, String segmentName, short importance, String subject, String message, String[] params)
pm
- providerName
- segmentName
- importance
- subject
- message
- params
- protected void importMessages(javax.jdo.PersistenceManager pm, String providerName, String segmentName, javax.mail.internet.MimeMessage message, MailImporterConfig config)
pm
- providerName
- segmentName
- message
- config
- protected void importMessages(String providerName, String segmentName) throws IOException
providerName
- segmentName
- IOException
protected void handleRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
req
- the servlet requestres
- the servlet responsejavax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.