Package net.officefloor.web.rest.build
Class RestMethodImpl
java.lang.Object
net.officefloor.web.rest.build.RestMethodImpl
- All Implemented Interfaces:
RestMethod
RestMethod implementation.-
Constructor Summary
ConstructorsConstructorDescriptionRestMethodImpl(boolean isSecure, HttpMethod httpMethod, HttpInput httpInput, OfficeSectionInput sectionInput, Object[] momentos) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains theHttpInput.Obtains theHttpMethod.<M> MgetMomento(MomentoKey<M> key) Obtains the Momento for theMomentoKey.Obtains theOfficeSectionInputto service theRestMethod.booleanisSecure()Indicates if theRestMethodis secure (e.g.
-
Constructor Details
-
RestMethodImpl
public RestMethodImpl(boolean isSecure, HttpMethod httpMethod, HttpInput httpInput, OfficeSectionInput sectionInput, Object[] momentos) Instantiate.- Parameters:
isSecure- Indicates ifHttpMethodrequires secure connection.httpMethod-HttpMethod.httpInput-HttpInputto service thisRestMethod.sectionInput-OfficeSectionInputto service thisRestMethod.momentos- Momentos.
-
-
Method Details
-
isSecure
public boolean isSecure()Description copied from interface:RestMethodIndicates if theRestMethodis secure (e.g. HTTPS).- Specified by:
isSecurein interfaceRestMethod- Returns:
trueifRestMethodis secure.
-
getHttpMethod
Description copied from interface:RestMethodObtains theHttpMethod.- Specified by:
getHttpMethodin interfaceRestMethod- Returns:
HttpMethod.
-
getHttpInput
Description copied from interface:RestMethodObtains theHttpInput.- Specified by:
getHttpInputin interfaceRestMethod- Returns:
HttpInput.
-
getServiceInput
Description copied from interface:RestMethodObtains theOfficeSectionInputto service theRestMethod.- Specified by:
getServiceInputin interfaceRestMethod- Returns:
OfficeSectionInputto service theRestMethod.
-
getMomento
Description copied from interface:RestMethodObtains the Momento for theMomentoKey.- Specified by:
getMomentoin interfaceRestMethod- Type Parameters:
M- Type of Momento.- Parameters:
key-MomentoKey.- Returns:
- Momento or
nullif no Momento specified by the respectiveRestMethodDecorator.
-