Class DefaultWebService

  • All Implemented Interfaces:
    com.aspectran.core.service.CoreService, com.aspectran.core.service.ServiceController, WebService

    public class DefaultWebService
    extends com.aspectran.core.service.AspectranCoreService
    implements WebService
    Provides overall functionality for building web applications within a web application container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static DefaultWebService create​(WebActivityServlet servlet)
      Returns a new instance of DefaultWebService.
      static DefaultWebService create​(WebActivityServlet servlet, DefaultWebService rootService)
      Returns a new instance of DefaultWebService.
      static DefaultWebService create​(javax.servlet.ServletContext servletContext)
      Returns a new instance of DefaultWebService.
      static DefaultWebService create​(javax.servlet.ServletContext servletContext, com.aspectran.core.service.CoreService rootService)
      Returns a new instance of DefaultWebService.
      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.
      protected void setUriDecoding​(java.lang.String uriDecoding)  
      • Methods inherited from class com.aspectran.core.service.AspectranCoreService

        afterContextLoaded, beforeContextDestroy, doPause, doPause, doResume, doStart, doStop
      • Methods inherited from class com.aspectran.core.service.AbstractCoreService

        destroyActivityContext, determineBasePath, getActivityContext, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, isDerived, isExposable, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, loadActivityContext, prepare, setActivityContext, setBasePath, setExposals, withdrawDerivedService
      • Methods inherited from class com.aspectran.core.service.AbstractServiceController

        clearDerivedService, getLock, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, setServiceStateListener, start, stop, withdrawDerivedService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.aspectran.core.service.CoreService

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

      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Description copied from interface: WebService
        Returns a reference to the ServletContext in which this WebService is running.
        Specified by:
        getServletContext in interface WebService
        Returns:
        a ServletContext object, used by this WebService to interact with its servlet container
      • setUriDecoding

        protected void setUriDecoding​(java.lang.String uriDecoding)
      • execute

        public void execute​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws java.io.IOException
        Description copied from interface: WebService
        Executes web activity.
        Specified by:
        execute in interface WebService
        Parameters:
        request - current HTTP servlet request
        response - current HTTP servlet response
        Throws:
        java.io.IOException - If an error occurs during Activity execution
      • create

        public static DefaultWebService create​(javax.servlet.ServletContext servletContext)
        Returns a new instance of DefaultWebService.
        Parameters:
        servletContext - the servlet context
        Returns:
        the instance of DefaultWebService
      • create

        public static DefaultWebService create​(javax.servlet.ServletContext servletContext,
                                               com.aspectran.core.service.CoreService rootService)
        Returns a new instance of DefaultWebService.
        Parameters:
        servletContext - the servlet context
        rootService - the root service
        Returns:
        the instance of DefaultWebService
      • create

        public static DefaultWebService create​(WebActivityServlet servlet)
        Returns a new instance of DefaultWebService.
        Parameters:
        servlet - the web activity servlet
        Returns:
        the instance of DefaultWebService
      • create

        public static DefaultWebService create​(WebActivityServlet servlet,
                                               DefaultWebService rootService)
        Returns a new instance of DefaultWebService.
        Parameters:
        servlet - the servlet
        rootService - the root service
        Returns:
        the instance of DefaultWebService