Package com.saperion.rs
Class RestService
- java.lang.Object
-
- com.saperion.rs.RestService
-
- Direct Known Subclasses:
AbstractFreemarkerResource,AbstractWeblinkService,ContentService,FederatedSearch,HTMLGateway,InfoResource
public class RestService extends java.lang.ObjectThis class represents the base class for all REST service classes.- Author:
- sts
-
-
Field Summary
Fields Modifier and Type Field Description static com.saperion.common.logging.LoggerLOGGERThis class's logger.
-
Constructor Summary
Constructors Constructor Description RestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckConnection(javax.servlet.http.HttpServletRequest request)Checks the existence of the SaClassicConnector in the given request.com.saperion.connector.SaClassicConnectorgetConnection(javax.servlet.http.HttpServletRequest request)Returns the SaClassicConnector instance from the given request if existing.
-
-
-
Method Detail
-
checkConnection
public void checkConnection(javax.servlet.http.HttpServletRequest request)
Checks the existence of the SaClassicConnector in the given request. Throws WebApplicationException if no SaClassicConnector is existing in the given request.- Parameters:
request- The request to inspect.
-
getConnection
public com.saperion.connector.SaClassicConnector getConnection(javax.servlet.http.HttpServletRequest request)
Returns the SaClassicConnector instance from the given request if existing. Calls checkConnection to determine the existence of the SaClassicConnector.- Parameters:
request- The request to get the SaClassicConnector from.- Returns:
- the SaClassicConnector if existing
-
-