Package org.apache.ofbiz.webapp.event
Class CoreEvents
- java.lang.Object
-
- org.apache.ofbiz.webapp.event.CoreEvents
-
public class CoreEvents extends java.lang.Object
CoreEvents - WebApp Events Related To Framework pieces
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
err_resource
static java.lang.String
module
static ServiceEventHandler
seh
-
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)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
err_resource
public static final java.lang.String err_resource
- See Also:
- Constant Field Values
-
seh
public static ServiceEventHandler seh
-
-
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
- HttpServletRequestresponse
- 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
- HttpServletRequestresponse
- 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
- HttpServletRequestresponse
- 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
- HttpServletRequestresponse
- 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
- HttpServletRequestresponse
- HttpServletResponse- Returns:
- Response code string
-
streamFile
public static java.lang.String streamFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-