public class RestServlet extends HttpServlet implements InterfaceContextAware
REST application of the Servlet class, is used to SCA (service component framework) way to publish REST service information.
| Modifier and Type | Class and Description |
|---|---|
class |
RestServlet.AdapterProxy |
| Constructor and Description |
|---|
RestServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected ServletAdapter |
createServletAdapter(HttpServletRequest request) |
InterfaceContext |
getInterfaceContext()
Returns the interface context.
|
RestServlet.AdapterProxy |
getServletAdapter() |
void |
init(ServletConfig config) |
void |
service(HttpServletRequest request, HttpServletResponse response)
Provides request forwarding from URI to REST resources.
|
void |
setInterfaceContext(InterfaceContext context)
Sets the interface context for injecting interface context objects.
|
protected void |
setRestApplication(RestApplication restApplication)
Sets the Rest application
|
void |
setServletAdapter(RestServlet.AdapterProxy adapter) |
public void init(ServletConfig config)
throws ServletException
ServletException
public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
Provides request forwarding from URI to REST resources.
request - request object.response - response object.ServletException - Servlet exception.java.io.IOException - An exception caused by a failed or interrupted I/O operation.
protected ServletAdapter createServletAdapter(HttpServletRequest request)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic InterfaceContext getInterfaceContext()
public void setInterfaceContext(InterfaceContext context)
Sets the interface context for injecting interface context objects.
setInterfaceContext in interface InterfaceContextAwarecontext - service interface context interface.public RestServlet.AdapterProxy getServletAdapter()
public void setServletAdapter(RestServlet.AdapterProxy adapter)
protected void setRestApplication(RestApplication restApplication)
restApplication -