public final class EndpointServlet extends Object
Constructor and Description |
---|
EndpointServlet(Class<? extends Servlet> servlet) |
EndpointServlet(Servlet servlet) |
Modifier and Type | Method and Description |
---|---|
EndpointServlet |
withInitParameter(String name,
String value) |
EndpointServlet |
withInitParameters(Map<String,String> initParameters) |
EndpointServlet |
withLoadOnStartup(int loadOnStartup)
Sets the
loadOnStartup priority that will be set on Servlet registration. |
public EndpointServlet(Servlet servlet)
public EndpointServlet withInitParameter(String name, String value)
public EndpointServlet withInitParameters(Map<String,String> initParameters)
public EndpointServlet withLoadOnStartup(int loadOnStartup)
loadOnStartup
priority that will be set on Servlet registration.
The default value for loadOnStartup
is -1
.loadOnStartup
- the initialization priority of the ServletEndpointServlet
with the provided
loadOnStartup
value setServletRegistration.Dynamic.setLoadOnStartup(int)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.