Package com.aspectran.web.service
Class AspectranWebService
- java.lang.Object
-
- com.aspectran.core.service.AbstractServiceController
-
- com.aspectran.core.service.AbstractCoreService
-
- com.aspectran.core.service.AspectranCoreService
-
- com.aspectran.web.service.AspectranWebService
-
- All Implemented Interfaces:
CoreService
,ServiceController
,WebService
public class AspectranWebService extends AspectranCoreService implements WebService
Provides overall functionality for building web applications within a web application container.
-
-
Field Summary
-
Fields inherited from interface com.aspectran.web.service.WebService
ROOT_WEB_SERVICE_ATTRIBUTE, STANDALONE_WEB_SERVICE_ATTRIBUTE_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AspectranWebService
create(WebActivityServlet servlet)
Returns a new instance ofAspectranWebService
.static AspectranWebService
create(WebActivityServlet servlet, AspectranWebService rootService)
Returns a new instance ofAspectranWebService
.static AspectranWebService
create(javax.servlet.ServletContext servletContext)
Returns a new instance ofAspectranWebService
.static AspectranWebService
create(javax.servlet.ServletContext servletContext, CoreService rootService)
Returns a new instance ofAspectranWebService
.void
execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Executes web activity.static ActivityContext
getActivityContext(javax.servlet.http.HttpServlet servlet)
Find the standalone ActivityContext for this web aspectran service.static ActivityContext
getActivityContext(javax.servlet.ServletContext servletContext)
Find the root ActivityContext for this web aspectran service.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, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, isDerived, isExposable, isHardReload, isLateStart, joinDerivedService, loadActivityContext, prepare, setActivityContext, setBasePath, setExposals
-
Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, getLock, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, setServiceStateListener, start, stop
-
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, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getServiceController, isHardReload, isLateStart, joinDerivedService
-
-
-
-
Method Detail
-
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 interfaceWebService
- Parameters:
request
- current HTTP servlet requestresponse
- current HTTP servlet response- Throws:
java.io.IOException
- If an error occurs during Activity execution
-
create
public static AspectranWebService create(javax.servlet.ServletContext servletContext)
Returns a new instance ofAspectranWebService
.- Parameters:
servletContext
- the servlet context- Returns:
- the instance of
AspectranWebService
-
create
public static AspectranWebService create(javax.servlet.ServletContext servletContext, CoreService rootService)
Returns a new instance ofAspectranWebService
.- Parameters:
servletContext
- the servlet contextrootService
- the root service- Returns:
- the instance of
AspectranWebService
-
create
public static AspectranWebService create(WebActivityServlet servlet)
Returns a new instance ofAspectranWebService
.- Parameters:
servlet
- the web activity servlet- Returns:
- the instance of
AspectranWebService
-
create
public static AspectranWebService create(WebActivityServlet servlet, AspectranWebService rootService)
Returns a new instance ofAspectranWebService
.- Parameters:
servlet
- the servletrootService
- the root service- Returns:
- the instance of
AspectranWebService
-
getActivityContext
public static ActivityContext getActivityContext(javax.servlet.ServletContext servletContext)
Find the root ActivityContext for this web aspectran service.- Parameters:
servletContext
- ServletContext to find the web aspectran service for- Returns:
- the ActivityContext for this web aspectran service
-
getActivityContext
public static ActivityContext getActivityContext(javax.servlet.http.HttpServlet servlet)
Find the standalone ActivityContext for this web aspectran service.- Parameters:
servlet
- the servlet- Returns:
- the ActivityContext for this web aspectran service
-
-