org.exoplatform.platform.common.account.setup.web
Class PingBackServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.exoplatform.platform.common.account.setup.web.PingBackServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PingBackServlet
extends javax.servlet.http.HttpServlet

Author:
Fbradai
See Also:
Serialized Form

Field Summary
static String COMMUNITY_EDITION
           
static String EXO_HOME_FOLDER
           
static String LOOP_FUSE_FORM_DISPLAYED
           
static String PING_BACK_FILE
           
static String PRODUCT_NAME
           
static String USER_HOME
           
 
Constructor Summary
PingBackServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static String getPingBackFileLocation()
           
static String getPingBackUrl()
           
 void init(javax.servlet.ServletConfig servletConfig)
           
static boolean isConnectedToInternet()
           
static boolean isLandingPageDisplayed()
           
static String readFromFile(String key, String fileLocation)
           
static void writePingBackFormDisplayed(boolean loopfuseFormDisplayed)
           
static void writeToFile(String key, String value, String fileLocation)
           
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOOP_FUSE_FORM_DISPLAYED

public static final String LOOP_FUSE_FORM_DISPLAYED
See Also:
Constant Field Values

USER_HOME

public static final String USER_HOME

EXO_HOME_FOLDER

public static final String EXO_HOME_FOLDER

PING_BACK_FILE

public static final String PING_BACK_FILE
See Also:
Constant Field Values

PRODUCT_NAME

public static final String PRODUCT_NAME
See Also:
Constant Field Values

COMMUNITY_EDITION

public static final String COMMUNITY_EDITION
See Also:
Constant Field Values
Constructor Detail

PingBackServlet

public PingBackServlet()
Method Detail

init

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

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doGet

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

isConnectedToInternet

public static boolean isConnectedToInternet()

writeToFile

public static void writeToFile(String key,
                               String value,
                               String fileLocation)

writePingBackFormDisplayed

public static void writePingBackFormDisplayed(boolean loopfuseFormDisplayed)
                                       throws org.exoplatform.commons.info.MissingProductInformationException
Throws:
org.exoplatform.commons.info.MissingProductInformationException

getPingBackFileLocation

public static String getPingBackFileLocation()
                                      throws org.exoplatform.commons.info.MissingProductInformationException
Throws:
org.exoplatform.commons.info.MissingProductInformationException

getPingBackUrl

public static String getPingBackUrl()

isLandingPageDisplayed

public static boolean isLandingPageDisplayed()
                                      throws org.exoplatform.commons.info.MissingProductInformationException
Throws:
org.exoplatform.commons.info.MissingProductInformationException

readFromFile

public static String readFromFile(String key,
                                  String fileLocation)
                           throws org.exoplatform.commons.info.MissingProductInformationException
Throws:
org.exoplatform.commons.info.MissingProductInformationException


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.