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.voidsetTransactionManager(TransactionManager transactionManager) Set the "Transaction Manager".Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ParameterServiceName of the service.- Specified by:
getNamein interfaceParameterService- Returns:
- Name.
-
setTransactionManager
Description copied from interface:ParameterServiceSet the "Transaction Manager". This method will be invoked by the platform with the currently active Transaction Manager.- Specified by:
setTransactionManagerin interfaceParameterService- Parameters:
transactionManager- Transaction Manager.
-
getMandatoryParameters
Description copied from interface:ParameterServiceGets 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:
getMandatoryParametersin interfaceParameterService- Returns:
- List of mandatory parameters.
-
serve
Description copied from interface:ParameterServiceImplement 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:
servein 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".
-