18.4. 配置 HTTP 连接器

HTTP 连接器为基于 HTTP 升级的远程连接器提供配置。JBoss EAP 默认提供以下 http-connector 配置:

<subsystem xmlns="urn:jboss:domain:remoting:4.0">
    ...
    <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
</subsystem>

默认情况下,此 HTTP 连接器连接到名为 default 的 HTTP 侦听器,该侦听器在 undertow 子系统中配置。如需更多信息,请参阅配置 Web 服务器(Undertow)。

更新现有的 HTTP 连接器配置

/subsystem=remoting/http-connector=new-connector:write-attribute(name=connector-ref,value=new-connector-ref)
reload

创建新 HTTP 连接器

/subsystem=remoting/http-connector=new-connector:add(connector-ref=default)

删除 HTTP 连接器

/subsystem=remoting/http-connector=new-connector:remove

有关可用于配置 HTTP 连接器的属性的完整列表,请参阅 Connector Attributes