org.opencrx.application.vcard
Class VCardServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opencrx.application.vcard.VCardServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class VCardServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
protected  ComponentConfiguration componentConfiguration
           
protected static String CONFIGURATION_ID
           
protected static int MAX_ACCOUNTS
           
protected  javax.jdo.PersistenceManagerFactory persistenceManagerFactory
           
protected static String RESOURCE_FORMAT_VCF
           
protected static String RESOURCE_NAME_ACCOUNTS_VCF
           
protected  javax.jdo.PersistenceManager rootPm
           
 
Constructor Summary
VCardServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  Account findAccount(javax.jdo.PersistenceManager pm, AccountsHelper accountsHelper, String uid)
           
protected  AccountsHelper getAccountsHelper(javax.jdo.PersistenceManager pm, String requestedAccountFilter)
           
protected  ComponentConfiguration getComponentConfiguration(String providerName)
           
protected  javax.jdo.PersistenceManager getPersistenceManager(javax.servlet.http.HttpServletRequest req)
           
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_ID

protected static final String CONFIGURATION_ID
See Also:
Constant Field Values

RESOURCE_NAME_ACCOUNTS_VCF

protected static final String RESOURCE_NAME_ACCOUNTS_VCF
See Also:
Constant Field Values

RESOURCE_FORMAT_VCF

protected static final String RESOURCE_FORMAT_VCF
See Also:
Constant Field Values

MAX_ACCOUNTS

protected static final int MAX_ACCOUNTS
See Also:
Constant Field Values

persistenceManagerFactory

protected javax.jdo.PersistenceManagerFactory persistenceManagerFactory

rootPm

protected javax.jdo.PersistenceManager rootPm

componentConfiguration

protected ComponentConfiguration componentConfiguration
Constructor Detail

VCardServlet

public VCardServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

getPersistenceManager

protected javax.jdo.PersistenceManager getPersistenceManager(javax.servlet.http.HttpServletRequest req)

getComponentConfiguration

protected ComponentConfiguration getComponentConfiguration(String providerName)

getAccountsHelper

protected AccountsHelper getAccountsHelper(javax.jdo.PersistenceManager pm,
                                           String requestedAccountFilter)

findAccount

protected Account findAccount(javax.jdo.PersistenceManager pm,
                              AccountsHelper accountsHelper,
                              String uid)

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doPut

protected void doPut(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doPut in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.