Package com.storedobjects.crm
Class ReceiveWebInquiry
java.lang.Object
com.storedobjects.crm.ReceiveWebInquiry
- All Implemented Interfaces:
ParameterService
-
Field Summary
Fields inherited from interface com.storedobject.core.ParameterService
OK, UNAUTHORIZED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the mandatory set of parameters to be present when calling this service.getName()
Name of the service.Implement the service here.void
setTransactionManager
(TransactionManager transactionManager) Set the "Transaction Manager".Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.core.ParameterService
getContentType, requiresPOST, serve, setHeaders, writeResponse, writeResponse
-
Constructor Details
-
ReceiveWebInquiry
public ReceiveWebInquiry()
-
-
Method Details
-
getName
Description copied from interface:ParameterService
Name of the service.- Specified by:
getName
in interfaceParameterService
- Returns:
- Name.
-
setTransactionManager
Description copied from interface:ParameterService
Set the "Transaction Manager". This method will be invoked by the platform with the currently active Transaction Manager.- Specified by:
setTransactionManager
in interfaceParameterService
- Parameters:
transactionManager
- Transaction Manager.
-
getMandatoryParameters
Description copied from interface:ParameterService
Gets the mandatory set of parameters to be present when calling this service. If any one of these parameters is not present, this service will not be invoked.- Specified by:
getMandatoryParameters
in interfaceParameterService
- Returns:
- List of mandatory parameters.
-
serve
Description copied from interface:ParameterService
Implement the service here. If the service requires JSON body received for processing, implement the other "serve" method that passes JSON as an additional parameter. (The default implementation does nothing).- Specified by:
serve
in interfaceParameterService
- Parameters:
parameters
- Map of the parameters received.- Returns:
- Status of the service such as "Ok", "Created" etc. This will be sent as a JSON response. Example: { "Status": "Ok" }. If plain text needs to be sent as a response, the status should be prefixed with "Plain:". Example: "Plain:Error while creating login".
-