public class ServletInfo extends WhiteboardServiceInfo<javax.servlet.Servlet>
Servlet, and is used to programmatically register Servlets.
This class only provides information used at registration time, and as such differs slightly from DTOs like, ServletDTO.
| Constructor and Description |
|---|
ServletInfo(ResourceInfo resource) |
ServletInfo(org.osgi.framework.ServiceReference<javax.servlet.Servlet> ref) |
ServletInfo(String name,
String pattern,
Map<String,String> initParams)
Constructor for Http Service
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getErrorPage() |
Map<String,String> |
getInitParameters()
Returns an unmodifiable map of the init parameters.
|
MultipartConfig |
getMultipartConfig() |
String |
getName() |
String[] |
getPatterns() |
String |
getPrefix() |
boolean |
isAsyncSupported() |
boolean |
isResource() |
boolean |
isValid() |
getContextSelection, getContextSelectionFiltercompareTo, equals, getBooleanProperty, getInitParams, getRanking, getServiceId, getServiceReference, getStringArrayProperty, getStringProperty, getTarget, hashCode, isEmpty, isEmptypublic ServletInfo(org.osgi.framework.ServiceReference<javax.servlet.Servlet> ref)
public ServletInfo(ResourceInfo resource)
public boolean isValid()
isValid in class WhiteboardServiceInfo<javax.servlet.Servlet>public String getName()
public String[] getPatterns()
public String[] getErrorPage()
public boolean isAsyncSupported()
public Map<String,String> getInitParameters()
public boolean isResource()
public String getPrefix()
public MultipartConfig getMultipartConfig()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.