Package com.aspectran.web.service
Interface WebService
-
- All Superinterfaces:
CoreService
- All Known Implementing Classes:
DefaultWebService
public interface WebService extends 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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
Executes web activity.jakarta.servlet.ServletContext
getServletContext()
Returns a reference to theServletContext
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
jakarta.servlet.ServletContext getServletContext()
Returns a reference to theServletContext
in which this WebService is running.- Returns:
- a
ServletContext
object, used by this WebService to interact with its servlet container
-
execute
void execute(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws java.io.IOException
Executes web activity.- Parameters:
request
- current HTTP servlet requestresponse
- current HTTP servlet response- Throws:
java.io.IOException
- If an error occurs during Activity execution
-
-