public class RestSwaggerServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
RestSwaggerServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getApiContextIdPattern() |
void |
init(javax.servlet.ServletConfig config) |
boolean |
isApiContextIdListing() |
void |
setApiContextIdListing(boolean apiContextIdListing)
Sets whether listing of all available CamelContext's with REST services in the JVM is enabled.
|
void |
setApiContextIdPattern(String apiContextIdPattern)
Optional CamelContext id pattern to only allow Rest APIs from rest services within CamelContext's which name matches the pattern.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic String getApiContextIdPattern()
public void setApiContextIdPattern(String apiContextIdPattern)
EndpointHelper.matchPattern(String, String)apiContextIdPattern - the patternpublic boolean isApiContextIdListing()
public void setApiContextIdListing(boolean apiContextIdListing)
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionApache Camel