类 CamelServletConfig.ServletConfig
- java.lang.Object
-
- org.apache.camel.quarkus.servlet.runtime.CamelServletConfig.ServletConfig
-
- 封闭类:
- CamelServletConfig
public static class CamelServletConfig.ServletConfig extends Object
camel-servletcomponent configuration
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringDEFAULT_SERVLET_CLASSstatic StringDEFAULT_SERVLET_NAMEStringservletClassA fully qualified name of a servlet class to serve paths that matchurlPatternsStringservletNameA servletName as it would be defined in a `web.xml` file or in theWebServlet.name()annotation.Optional<List<String>>urlPatternsA comma separated list of path patterns under which the CamelServlet should be accessible.
-
构造器概要
构造器 构造器 说明 ServletConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetEffectiveServletName(String key)Setting the servlet name is possible both viaservletNameand the key in theorg.apache.camel.quarkus.servlet.runtime.CamelServletConfig.ServletsConfig#namedServletsmap.booleanisValid()
-
-
-
字段详细资料
-
urlPatterns
@ConfigItem public Optional<List<String>> urlPatterns
A comma separated list of path patterns under which the CamelServlet should be accessible. Example path patterns:/*,/services/*
-
servletClass
@ConfigItem(defaultValue="org.apache.camel.component.servlet.CamelHttpTransportServlet") public String servletClass
A fully qualified name of a servlet class to serve paths that matchurlPatterns
-
servletName
@ConfigItem(defaultValue="CamelServlet") public String servletName
A servletName as it would be defined in a `web.xml` file or in theWebServlet.name()annotation.
-
-
方法详细资料
-
isValid
public boolean isValid()
- 返回:
trueif thisCamelServletConfig.ServletConfigis valid as a whole. This currently translates tourlPatternsbeing non-empty becauseservletClassandservletNamehave default values. Otherwise returnsfalse.
-
getEffectiveServletName
public String getEffectiveServletName(String key)
Setting the servlet name is possible both viaservletNameand the key in theorg.apache.camel.quarkus.servlet.runtime.CamelServletConfig.ServletsConfig#namedServletsmap. This method sets the precedence: theservletNamegets effective only if it has a non-default value; otherwise thekeyis returned as the servlet name.- 参数:
key- the key used inorg.apache.camel.quarkus.servlet.runtime.CamelServletConfig.ServletsConfig#namedServlets- 返回:
- the effective servlet name to use
-
-