Package com.aspectran.web.service
Interface WebService
-
- All Superinterfaces:
com.aspectran.core.service.CoreService
- All Known Implementing Classes:
DefaultWebService
public interface WebService extends com.aspectran.core.service.CoreServiceThe Interface WebService.Created: 2017. 10. 28.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROOT_WEB_SERVICE_ATTR_NAMEServletContext attribute name used to obtain the root WebService object.static java.lang.StringSTANDALONE_WEB_SERVICE_ATTR_PREFIXThe 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 voidexecute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Executes web activity.javax.servlet.ServletContextgetServletContext()Returns a reference to theServletContextin 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 theServletContextin which this WebService is running.- Returns:
- a
ServletContextobject, 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.IOExceptionExecutes web activity.- Parameters:
request- current HTTP servlet requestresponse- current HTTP servlet response- Throws:
java.io.IOException- If an error occurs during Activity execution
-
-