Class CoreEvents


  • public class CoreEvents
    extends java.lang.Object
    CoreEvents - WebApp Events Related To Framework pieces
    • Constructor Summary

      Constructors 
      Constructor Description
      CoreEvents()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getObjectFromServicePath​(java.lang.String servicePath, java.util.Map<java.lang.String,​? extends java.lang.Object> serviceResult)  
      static java.lang.String returnError​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Return error event.
      static java.lang.String returnNull​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Return null event.
      static java.lang.String returnSuccess​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Return success event.
      static java.lang.String runService​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Run a service.
      static java.lang.String saveServiceResultsToSession​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      static java.lang.String scheduleService​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Schedule a service for a specific time or recurrence Request Parameters which are used for this service: SERVICE_NAME - Name of the service to invoke SERVICE_TIME - First time the service will occur SERVICE_FREQUENCY - The type of recurrence (SECONDLY,MINUTELY,DAILY,etc) SERVICE_INTERVAL - The interval of the frequency (every 5 minutes, etc)
      static java.lang.String streamFile​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CoreEvents

        public CoreEvents()
    • Method Detail

      • returnSuccess

        public static java.lang.String returnSuccess​(javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
        Return success event. Used as a place holder for events.
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        Returns:
        Response code string
      • returnError

        public static java.lang.String returnError​(javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response)
        Return error event. Used as a place holder for events.
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        Returns:
        Response code string
      • returnNull

        public static java.lang.String returnNull​(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response)
        Return null event. Used as a place holder for events.
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        Returns:
        Response code string
      • scheduleService

        public static java.lang.String scheduleService​(javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
        Schedule a service for a specific time or recurrence Request Parameters which are used for this service: SERVICE_NAME - Name of the service to invoke SERVICE_TIME - First time the service will occur SERVICE_FREQUENCY - The type of recurrence (SECONDLY,MINUTELY,DAILY,etc) SERVICE_INTERVAL - The interval of the frequency (every 5 minutes, etc)
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        Returns:
        Response code string
      • saveServiceResultsToSession

        public static java.lang.String saveServiceResultsToSession​(javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
      • getObjectFromServicePath

        public static java.lang.Object getObjectFromServicePath​(java.lang.String servicePath,
                                                                java.util.Map<java.lang.String,​? extends java.lang.Object> serviceResult)
      • runService

        public static java.lang.String runService​(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response)
        Run a service. Request Parameters which are used for this event: SERVICE_NAME - Name of the service to invoke
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        Returns:
        Response code string
      • streamFile

        public static java.lang.String streamFile​(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response)