Class RestService

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.saperion.common.logging.Logger LOGGER
      This class's logger.
    • Constructor Summary

      Constructors 
      Constructor Description
      RestService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkConnection​(javax.servlet.http.HttpServletRequest request)
      Checks the existence of the SaClassicConnector in the given request.
      com.saperion.connector.SaClassicConnector getConnection​(javax.servlet.http.HttpServletRequest request)
      Returns the SaClassicConnector instance from the given request if existing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        public static final com.saperion.common.logging.Logger LOGGER
        This class's logger.
    • Constructor Detail

      • RestService

        public RestService()
    • 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