Interface WebService

  • All Superinterfaces:
    com.aspectran.core.service.CoreService
    All Known Implementing Classes:
    DefaultWebService

    public interface WebService
    extends com.aspectran.core.service.CoreService
    The Interface WebService.

    Created: 2017. 10. 28.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ROOT_WEB_SERVICE_ATTR_NAME
      ServletContext attribute name used to obtain the root WebService object.
      static java.lang.String STANDALONE_WEB_SERVICE_ATTR_PREFIX
      The prefix of the ServletContext property name used to get the standalone WebService object.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Executes web activity.
      javax.servlet.ServletContext getServletContext()
      Returns a reference to the ServletContext in which this WebService is running.
      • Methods inherited from interface com.aspectran.core.service.CoreService

        getActivityContext, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
    • Field Detail

      • ROOT_WEB_SERVICE_ATTR_NAME

        static final java.lang.String ROOT_WEB_SERVICE_ATTR_NAME
        ServletContext attribute name used to obtain the root WebService object.
      • STANDALONE_WEB_SERVICE_ATTR_PREFIX

        static final java.lang.String STANDALONE_WEB_SERVICE_ATTR_PREFIX
        The prefix of the ServletContext property name used to get the standalone WebService object.
    • Method Detail

      • getServletContext

        javax.servlet.ServletContext getServletContext()
        Returns a reference to the ServletContext in which this WebService is running.
        Returns:
        a ServletContext object, used by this WebService to interact with its servlet container
      • execute

        void execute​(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws java.io.IOException
        Executes web activity.
        Parameters:
        request - current HTTP servlet request
        response - current HTTP servlet response
        Throws:
        java.io.IOException - If an error occurs during Activity execution