.addAttributes(UndertowRootDefinition.DEFAULT_VIRTUAL_HOST, UndertowRootDefinition.DEFAULT_SERVLET_CONTAINER, UndertowRootDefinition.DEFAULT_SERVER, UndertowRootDefinition.INSTANCE_ID) .addAttribute(UndertowRootDefinition.STATISTICS_ENABLED) .addChild( .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( builder(AjpListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(AjpListenerResourceDefinition.SCHEME, AjpListenerResourceDefinition.BUFFER_POOL, AjpListenerResourceDefinition.ENABLED, AjpListenerResourceDefinition.SOCKET_BINDING, AjpListenerResourceDefinition.WORKER, ListenerResourceDefinition.REDIRECT_SOCKET) .addChild( builder(HttpListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(HttpListenerResourceDefinition.BUFFER_POOL, HttpListenerResourceDefinition.CERTIFICATE_FORWARDING, HttpListenerResourceDefinition.ENABLED, HttpListenerResourceDefinition.SOCKET_BINDING, HttpListenerResourceDefinition.WORKER, ListenerResourceDefinition.REDIRECT_SOCKET, HttpListenerResourceDefinition.PROXY_ADDRESS_FORWARDING) ListenerResourceDefinition.URL_CHARSET, ListenerResourceDefinition.ALWAYS_SET_KEEP_ALIVE, ListenerResourceDefinition.MAX_BUFFERED_REQUEST_SIZE, ListenerResourceDefinition.RECORD_REQUEST_START_TIME, ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE) ).addChild( builder(HttpsListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(AjpListenerResourceDefinition.SOCKET_BINDING, AjpListenerResourceDefinition.WORKER, AjpListenerResourceDefinition.BUFFER_POOL, AjpListenerResourceDefinition.ENABLED) ListenerResourceDefinition.URL_CHARSET, ListenerResourceDefinition.ALWAYS_SET_KEEP_ALIVE, ListenerResourceDefinition.MAX_BUFFERED_REQUEST_SIZE, ListenerResourceDefinition.RECORD_REQUEST_START_TIME, ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER) .addChild(
.addAttributes(UndertowRootDefinition.DEFAULT_VIRTUAL_HOST, UndertowRootDefinition.DEFAULT_SERVLET_CONTAINER, UndertowRootDefinition.DEFAULT_SERVER, UndertowRootDefinition.INSTANCE_ID) .addAttribute(UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( builder(AjpListenerResourceDefinition.INSTANCE.getPathElement()) .addChild( builder(HttpListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(HttpListenerResourceDefinition.BUFFER_POOL, HttpListenerResourceDefinition.CERTIFICATE_FORWARDING, HttpListenerResourceDefinition.ENABLED, HttpListenerResourceDefinition.SOCKET_BINDING, HttpListenerResourceDefinition.WORKER, ListenerResourceDefinition.REDIRECT_SOCKET, HttpListenerResourceDefinition.PROXY_ADDRESS_FORWARDING) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE) ).addChild( builder(HttpsListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(AjpListenerResourceDefinition.SOCKET_BINDING, AjpListenerResourceDefinition.WORKER, AjpListenerResourceDefinition.BUFFER_POOL, AjpListenerResourceDefinition.ENABLED) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER)
.addAttributes(UndertowRootDefinition.DEFAULT_VIRTUAL_HOST, UndertowRootDefinition.DEFAULT_SERVLET_CONTAINER, UndertowRootDefinition.DEFAULT_SERVER, UndertowRootDefinition.INSTANCE_ID) .addAttribute(UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( builder(AjpListenerResourceDefinition.INSTANCE.getPathElement()) .addChild( builder(HttpListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(HttpListenerResourceDefinition.BUFFER_POOL, HttpListenerResourceDefinition.CERTIFICATE_FORWARDING, HttpListenerResourceDefinition.ENABLED, HttpListenerResourceDefinition.SOCKET_BINDING, HttpListenerResourceDefinition.WORKER, ListenerResourceDefinition.REDIRECT_SOCKET, HttpListenerResourceDefinition.PROXY_ADDRESS_FORWARDING) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE, ListenerResourceDefinition.NO_REQUEST_TIMEOUT, ListenerResourceDefinition.REQUEST_PARSE_TIMEOUT) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE, ListenerResourceDefinition.READ_TIMEOUT, ListenerResourceDefinition.WRITE_TIMEOUT) ).addChild( builder(HttpsListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(AjpListenerResourceDefinition.SOCKET_BINDING, AjpListenerResourceDefinition.WORKER, AjpListenerResourceDefinition.BUFFER_POOL, AjpListenerResourceDefinition.ENABLED) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE, ListenerResourceDefinition.NO_REQUEST_TIMEOUT, ListenerResourceDefinition.REQUEST_PARSE_TIMEOUT) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE, ListenerResourceDefinition.READ_TIMEOUT, ListenerResourceDefinition.WRITE_TIMEOUT) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER)
@Override public PersistentResourceXMLDescription getParserDescription() { return PersistentResourceXMLDescription.builder(ElytronExtension.SUBSYSTEM_PATH, getNameSpace()) .addAttribute(ElytronDefinition.DEFAULT_AUTHENTICATION_CONTEXT) .addAttribute(ElytronDefinition.INITIAL_PROVIDERS) .addAttribute(ElytronDefinition.FINAL_PROVIDERS) .addAttribute(ElytronDefinition.DISALLOWED_PROVIDERS) .addAttribute(ElytronDefinition.SECURITY_PROPERTIES, new AttributeParsers.PropertiesParser(null, SECURITY_PROPERTY, true), new AttributeMarshallers.PropertiesAttributeMarshaller(null, SECURITY_PROPERTY, true)) .addChild(getAuthenticationClientParser()) .addChild(getProviderParser()) .addChild(getAuditLoggingParser()) .addChild(getDomainParser()) .addChild(getRealmParser()) .addChild(getCredentialSecurityFactoryParser()) .addChild(getMapperParser()) .addChild(getPermissionSetParser()) // new .addChild(getHttpParser()) .addChild(getSaslParser()) .addChild(getTlsParser()) .addChild(decorator(CREDENTIAL_STORES).addChild(new CredentialStoreParser().parser)) .addChild(getDirContextParser()) .addChild(getPolicyParser()) .build(); }
@Override public PersistentResourceXMLDescription getParserDescription() { return PersistentResourceXMLDescription.builder(ElytronExtension.SUBSYSTEM_PATH, getNameSpace()) .addAttribute(ElytronDefinition.DEFAULT_AUTHENTICATION_CONTEXT) .addAttribute(ElytronDefinition.INITIAL_PROVIDERS) .addAttribute(ElytronDefinition.FINAL_PROVIDERS) .addAttribute(ElytronDefinition.DISALLOWED_PROVIDERS) .addAttribute(ElytronDefinition.SECURITY_PROPERTIES, new AttributeParsers.PropertiesParser(null, SECURITY_PROPERTY, true), new AttributeMarshallers.PropertiesAttributeMarshaller(null, SECURITY_PROPERTY, true)) .addChild(getAuthenticationClientParser()) .addChild(getProviderParser()) .addChild(getAuditLoggingParser()) .addChild(getDomainParser()) .addChild(getRealmParser()) .addChild(getCredentialSecurityFactoryParser()) .addChild(getMapperParser()) .addChild(getHttpParser()) .addChild(getSaslParser()) .addChild(getTlsParser()) .addChild(decorator(CREDENTIAL_STORES).addChild(new CredentialStoreParser().parser)) .addChild(getDirContextParser()) .addChild(getPolicyParser()) .build(); }
IOSubsystemParser_1_0() { xmlDescription = builder(IORootDefinition.INSTANCE.getPathElement()) .addChild( builder(WorkerResourceDefinition.INSTANCE.getPathElement()) .addAttribute(WorkerResourceDefinition.WORKER_IO_THREADS, new AttributeParser.DiscardOldDefaultValueParser("3")) .addAttributes( WorkerResourceDefinition.WORKER_TASK_KEEPALIVE, WorkerResourceDefinition.WORKER_TASK_MAX_THREADS, WorkerResourceDefinition.STACK_SIZE) ) .addChild( builder(BufferPoolResourceDefinition.INSTANCE.getPathElement()) .addAttribute(BufferPoolResourceDefinition.BUFFER_SIZE, new AttributeParser.DiscardOldDefaultValueParser("16384")) .addAttribute(BufferPoolResourceDefinition.BUFFER_PER_SLICE, new AttributeParser.DiscardOldDefaultValueParser("128")) .addAttribute(BufferPoolResourceDefinition.DIRECT_BUFFERS) ) .build(); }
IOSubsystemParser_1_0() { xmlDescription = builder(IORootDefinition.INSTANCE.getPathElement()) .addChild( builder(WorkerResourceDefinition.INSTANCE.getPathElement()) .addAttribute(WorkerResourceDefinition.WORKER_IO_THREADS, new AttributeParser.DiscardOldDefaultValueParser("3")) .addAttributes( WorkerResourceDefinition.WORKER_TASK_KEEPALIVE, WorkerResourceDefinition.WORKER_TASK_MAX_THREADS, WorkerResourceDefinition.STACK_SIZE) ) .addChild( builder(BufferPoolResourceDefinition.INSTANCE.getPathElement()) .addAttribute(BufferPoolResourceDefinition.BUFFER_SIZE, new AttributeParser.DiscardOldDefaultValueParser("16384")) .addAttribute(BufferPoolResourceDefinition.BUFFER_PER_SLICE, new AttributeParser.DiscardOldDefaultValueParser("128")) .addAttribute(BufferPoolResourceDefinition.DIRECT_BUFFERS) ) .build(); }
public PersistentResourceXMLDescription getParserDescription() { return builder(PathElement.pathElement(SUBSYSTEM, DISCOVERY), DiscoveryExtension.NAMESPACE) .addChild( builder(PathElement.pathElement(STATIC_PROVIDER)) .addAttribute(StaticProviderDefinition.SERVICES, AttributeParser.UNWRAPPED_OBJECT_LIST_PARSER, AttributeMarshaller.UNWRAPPED_OBJECT_LIST_MARSHALLER) ) .addChild( builder(PathElement.pathElement(AGGREGATE_PROVIDER)) .addAttribute(AggregateProviderDefinition.PROVIDER_NAMES) ) .build(); } }
@Override public PersistentResourceXMLDescription getParserDescription() { return builder(SecurityManagerRootDefinition.INSTANCE.getPathElement(), Namespace.SECURITY_MANAGER_1_0.getUriString()) .addChild(builder(DeploymentPermissionsResourceDefinition.INSTANCE.getPathElement()) .setXmlElementName(Constants.DEPLOYMENT_PERMISSIONS) .addAttribute(DeploymentPermissionsResourceDefinition.MINIMUM_PERMISSIONS) .addAttribute(DeploymentPermissionsResourceDefinition.MAXIMUM_PERMISSIONS) ) .build(); } }
@Override public PersistentResourceXMLDescription getParserDescription() { return builder(CoreManagementExtension.SUBSYSTEM_PATH, NAMESPACE) .addChild(builder(ConfigurationChangeResourceDefinition.PATH).addAttribute(ConfigurationChangeResourceDefinition.MAX_HISTORY)) .addChild(builder(CoreManagementExtension.PROCESS_STATE_LISTENER_PATH) .addAttribute(ProcessStateListenerResourceDefinition.LISTENER_CLASS) .addAttribute(ProcessStateListenerResourceDefinition.LISTENER_MODULE) .addAttribute(ProcessStateListenerResourceDefinition.PROPERTIES) .addAttribute(ProcessStateListenerResourceDefinition.TIMEOUT)) .build(); } }
UndertowRootDefinition.DEFAULT_SECURITY_DOMAIN, UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( listenerBuilder(AjpListenerResourceDefinition.INSTANCE) .addChild( listenerBuilder(HttpListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.HTTP2_MAX_HEADER_LIST_SIZE, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11) ).addChild( listenerBuilder(HttpsListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.HTTP2_MAX_HEADER_LIST_SIZE, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE, HostDefinition.DEFAULT_RESPONSE_CODE, HostDefinition.DISABLE_CONSOLE_REDIRECT) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER) .addChild(filterRefBuilder()) ).addChild(
UndertowRootDefinition.DEFAULT_SECURITY_DOMAIN, UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(ByteBufferPoolDefinition.INSTANCE.getPathElement()) .addAttributes(ByteBufferPoolDefinition.DIRECT, ByteBufferPoolDefinition.BUFFER_SIZE, ByteBufferPoolDefinition.MAX_POOL_SIZE, ByteBufferPoolDefinition.THREAD_LOCAL_CACHE_SIZE, ByteBufferPoolDefinition.LEAK_DETECTION_PERCENT) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( listenerBuilder(AjpListenerResourceDefinition.INSTANCE) .addChild( listenerBuilder(HttpListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11, HttpListenerResourceDefinition.PROXY_PROTOCOL) ).addChild( listenerBuilder(HttpsListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11, HttpListenerResourceDefinition.PROXY_PROTOCOL) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS,
UndertowRootDefinition.DEFAULT_SECURITY_DOMAIN, UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(ByteBufferPoolDefinition.INSTANCE.getPathElement()) .addAttributes(ByteBufferPoolDefinition.DIRECT, ByteBufferPoolDefinition.BUFFER_SIZE, ByteBufferPoolDefinition.MAX_POOL_SIZE, ByteBufferPoolDefinition.THREAD_LOCAL_CACHE_SIZE, ByteBufferPoolDefinition.LEAK_DETECTION_PERCENT) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( listenerBuilder(AjpListenerResourceDefinition.INSTANCE) .addChild( listenerBuilder(HttpListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11, HttpListenerResourceDefinition.PROXY_PROTOCOL) ).addChild( listenerBuilder(HttpsListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11, HttpListenerResourceDefinition.PROXY_PROTOCOL) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS,
UndertowRootDefinition.DEFAULT_SECURITY_DOMAIN, UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( listenerBuilder(AjpListenerResourceDefinition.INSTANCE) .addChild( listenerBuilder(HttpListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.HTTP2_MAX_HEADER_LIST_SIZE, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11) ).addChild( listenerBuilder(HttpsListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.HTTP2_MAX_HEADER_LIST_SIZE, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE, HostDefinition.DEFAULT_RESPONSE_CODE, HostDefinition.DISABLE_CONSOLE_REDIRECT) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER) .addChild(filterRefBuilder()) ).addChild(
UndertowRootDefinition.DEFAULT_SECURITY_DOMAIN, UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(ByteBufferPoolDefinition.INSTANCE.getPathElement()) .addAttributes(ByteBufferPoolDefinition.DIRECT, ByteBufferPoolDefinition.BUFFER_SIZE, ByteBufferPoolDefinition.MAX_POOL_SIZE, ByteBufferPoolDefinition.THREAD_LOCAL_CACHE_SIZE, ByteBufferPoolDefinition.LEAK_DETECTION_PERCENT) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( listenerBuilder(AjpListenerResourceDefinition.INSTANCE) .addChild( listenerBuilder(HttpListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11, HttpListenerResourceDefinition.PROXY_PROTOCOL) ).addChild( listenerBuilder(HttpsListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11, HttpListenerResourceDefinition.PROXY_PROTOCOL) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS,
UndertowRootDefinition.DEFAULT_SECURITY_DOMAIN, UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( listenerBuilder(AjpListenerResourceDefinition.INSTANCE) .addChild( listenerBuilder(HttpListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.HTTP2_MAX_FRAME_SIZE, HttpListenerResourceDefinition.HTTP2_MAX_HEADER_LIST_SIZE) ).addChild( listenerBuilder(HttpsListenerResourceDefinition.INSTANCE) HttpListenerResourceDefinition.HTTP2_MAX_FRAME_SIZE, HttpListenerResourceDefinition.HTTP2_MAX_HEADER_LIST_SIZE) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE, HostDefinition.DEFAULT_RESPONSE_CODE, HostDefinition.DISABLE_CONSOLE_REDIRECT) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER) .addChild(filterRefBuilder()) ).addChild(
.addAttributes(UndertowRootDefinition.DEFAULT_VIRTUAL_HOST, UndertowRootDefinition.DEFAULT_SERVLET_CONTAINER, UndertowRootDefinition.DEFAULT_SERVER, UndertowRootDefinition.INSTANCE_ID, UndertowRootDefinition.DEFAULT_SECURITY_DOMAIN) .addAttribute(UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( builder(AjpListenerResourceDefinition.INSTANCE.getPathElement()) .addChild( builder(HttpListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(HttpListenerResourceDefinition.BUFFER_POOL, HttpListenerResourceDefinition.CERTIFICATE_FORWARDING, HttpListenerResourceDefinition.ENABLED, ListenerResourceDefinition.REDIRECT_SOCKET, HttpListenerResourceDefinition.SOCKET_BINDING, HttpListenerResourceDefinition.WORKER, HttpListenerResourceDefinition.PROXY_ADDRESS_FORWARDING, HttpListenerResourceDefinition.ENABLE_HTTP2) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE, ListenerResourceDefinition.NO_REQUEST_TIMEOUT, ListenerResourceDefinition.REQUEST_PARSE_TIMEOUT, ListenerResourceDefinition.DISALLOWED_METHODS) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE, ListenerResourceDefinition.READ_TIMEOUT, ListenerResourceDefinition.WRITE_TIMEOUT, ListenerResourceDefinition.MAX_CONNECTIONS, ListenerResourceDefinition.SECURE) ).addChild( builder(HttpsListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(AjpListenerResourceDefinition.SOCKET_BINDING, AjpListenerResourceDefinition.WORKER, AjpListenerResourceDefinition.BUFFER_POOL, AjpListenerResourceDefinition.ENABLED) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE, ListenerResourceDefinition.NO_REQUEST_TIMEOUT, ListenerResourceDefinition.REQUEST_PARSE_TIMEOUT, ListenerResourceDefinition.DISALLOWED_METHODS) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE, ListenerResourceDefinition.READ_TIMEOUT, ListenerResourceDefinition.WRITE_TIMEOUT, ListenerResourceDefinition.MAX_CONNECTIONS, ListenerResourceDefinition.SECURE) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE, HostDefinition.DEFAULT_RESPONSE_CODE, HostDefinition.DISABLE_CONSOLE_REDIRECT) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER)
.addAttributes(UndertowRootDefinition.DEFAULT_VIRTUAL_HOST, UndertowRootDefinition.DEFAULT_SERVLET_CONTAINER, UndertowRootDefinition.DEFAULT_SERVER, UndertowRootDefinition.INSTANCE_ID) .addAttribute(UndertowRootDefinition.STATISTICS_ENABLED) .addChild( builder(BufferCacheDefinition.INSTANCE.getPathElement()) .addAttributes(BufferCacheDefinition.BUFFER_SIZE, BufferCacheDefinition.BUFFERS_PER_REGION, BufferCacheDefinition.MAX_REGIONS) .addChild(builder(ServerDefinition.INSTANCE.getPathElement()) .addAttributes(ServerDefinition.DEFAULT_HOST, ServerDefinition.SERVLET_CONTAINER) .addChild( builder(AjpListenerResourceDefinition.INSTANCE.getPathElement()) .addChild( builder(HttpListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(HttpListenerResourceDefinition.BUFFER_POOL, HttpListenerResourceDefinition.CERTIFICATE_FORWARDING, HttpListenerResourceDefinition.ENABLED, HttpListenerResourceDefinition.SOCKET_BINDING, HttpListenerResourceDefinition.WORKER, ListenerResourceDefinition.REDIRECT_SOCKET, HttpListenerResourceDefinition.PROXY_ADDRESS_FORWARDING, HttpListenerResourceDefinition.ENABLE_HTTP2) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE, ListenerResourceDefinition.NO_REQUEST_TIMEOUT, ListenerResourceDefinition.REQUEST_PARSE_TIMEOUT) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE, ListenerResourceDefinition.READ_TIMEOUT, ListenerResourceDefinition.WRITE_TIMEOUT) ).addChild( builder(HttpsListenerResourceDefinition.INSTANCE.getPathElement()) .addAttributes(AjpListenerResourceDefinition.SOCKET_BINDING, AjpListenerResourceDefinition.WORKER, AjpListenerResourceDefinition.BUFFER_POOL, AjpListenerResourceDefinition.ENABLED) ListenerResourceDefinition.ALLOW_EQUALS_IN_COOKIE_VALUE, ListenerResourceDefinition.NO_REQUEST_TIMEOUT, ListenerResourceDefinition.REQUEST_PARSE_TIMEOUT) .addAttributes(ListenerResourceDefinition.BACKLOG, ListenerResourceDefinition.RECEIVE_BUFFER, ListenerResourceDefinition.SEND_BUFFER, ListenerResourceDefinition.KEEP_ALIVE, ListenerResourceDefinition.READ_TIMEOUT, ListenerResourceDefinition.WRITE_TIMEOUT) ).addChild( builder(HostDefinition.INSTANCE.getPathElement()) .addAttributes(HostDefinition.ALIAS, HostDefinition.DEFAULT_WEB_MODULE) .addChild( builder(LocationDefinition.INSTANCE.getPathElement()) .addAttributes(LocationDefinition.HANDLER)
@Override public PersistentResourceXMLDescription getParserDescription() { return builder(MailSubsystemResource.INSTANCE.getPathElement(), Namespace.MAIL_3_0.getUriString()) .addChild( builder(MailSessionDefinition.INSTANCE.getPathElement()) .addAttributes(MailSessionDefinition.DEBUG, MailSessionDefinition.JNDI_NAME, MailSessionDefinition.FROM) .addChild( builder(MailServerDefinition.INSTANCE_SMTP.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD, MailServerDefinition.CREDENTIAL_REFERENCE) .addChild( builder(MailServerDefinition.INSTANCE_POP3.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD, MailServerDefinition.CREDENTIAL_REFERENCE) .setXmlElementName(MailSubsystemModel.POP3_SERVER) .addChild( builder(MailServerDefinition.INSTANCE_IMAP.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD, MailServerDefinition.CREDENTIAL_REFERENCE) .setXmlElementName(MailSubsystemModel.IMAP_SERVER) .addChild( builder(MailServerDefinition.INSTANCE_CUSTOM.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF_OPTIONAL, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD, MailServerDefinition.CREDENTIAL_REFERENCE, MailServerDefinition.PROPERTIES)
MailSubsystemParser2_0() { xmlDescription = builder(MailSubsystemResource.INSTANCE.getPathElement(), Namespace.MAIL_2_0.getUriString()) .addChild( builder(MailSessionDefinition.INSTANCE.getPathElement()) .addAttributes(MailSessionDefinition.DEBUG, MailSessionDefinition.JNDI_NAME, MailSessionDefinition.FROM) .addChild( builder(MailServerDefinition.INSTANCE_SMTP.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD) .setXmlElementName(MailSubsystemModel.SMTP_SERVER) ) .addChild( builder(MailServerDefinition.INSTANCE_POP3.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD) .setXmlElementName(MailSubsystemModel.POP3_SERVER) ) .addChild( builder(MailServerDefinition.INSTANCE_IMAP.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD) .setXmlElementName(MailSubsystemModel.IMAP_SERVER) ) .addChild( builder(MailServerDefinition.INSTANCE_CUSTOM.getPathElement()) .addAttributes(MailServerDefinition.OUTBOUND_SOCKET_BINDING_REF_OPTIONAL, MailServerDefinition.SSL, MailServerDefinition.TLS, MailServerDefinition.USERNAME, MailServerDefinition.PASSWORD, MailServerDefinition.PROPERTIES) .setXmlElementName(MailSubsystemModel.CUSTOM_SERVER) ) ) .build(); }