org.qi4j.library.http

## Class JettyServiceAssembler

- java.lang.Object
- - org.qi4j.bootstrap.Assemblers.VisibilityIdentityConfig<JettyServiceAssembler>
  - - org.qi4j.library.http.JettyServiceAssembler

- All Implemented Interfaces:
    Assembler, Assemblers.Configurable<JettyServiceAssembler>, Assemblers.Identifiable<JettyServiceAssembler>, Assemblers.Visible<JettyServiceAssembler>
  Direct Known Subclasses:
    SecureJettyServiceAssembler

      public class JettyServiceAssembler
      extends Assemblers.VisibilityIdentityConfig<JettyServiceAssembler>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected String` | `serverIdentity`
    `protected ModuleAssembly` | `serverModule`
    `protected Visibility` | `serverVisibility`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JettyServiceAssembler()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `assemble(ModuleAssembly module)` Assemblers receive a callback to the ModuleAssembly they are supposed to configure.
    `protected void` | `assembleServer(ModuleAssembly module)`
    `protected Class<? extends JettyConfiguration>` | `configurationEntity()`
    `protected Class<? extends JettyService>` | `httpService()`
    `JettyServiceAssembler` | `serverIdentifiedBy(String serverIdentity)`
    `JettyServiceAssembler` | `withServer(ModuleAssembly serverModule, Visibility serverVisibility)`

    - ### Methods inherited from class org.qi4j.bootstrap.Assemblers.VisibilityIdentityConfig

      `configModule, configVisibility, hasConfig, hasIdentity, identifiedBy, identity, visibility, visibleIn, withConfig`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### serverModule

          protected ModuleAssembly serverModule

    - #### serverVisibility

          protected Visibility serverVisibility

    - #### serverIdentity

          protected String serverIdentity

  - ### Constructor Detail

    - #### JettyServiceAssembler

          public JettyServiceAssembler()

  - ### Method Detail

    - #### withServer

          public JettyServiceAssembler withServer(ModuleAssembly serverModule,
                                         Visibility serverVisibility)

      Parameters:
        `serverModule` - Defaults to assembled module
        `serverVisibility` - Defaults to `Visibility.module`

    - #### serverIdentifiedBy

          public JettyServiceAssembler serverIdentifiedBy(String serverIdentity)

    - #### assemble

          public final void assemble(ModuleAssembly module)
                              throws AssemblyException

      Description copied from interface: `Assembler`
      Assemblers receive a callback to the ModuleAssembly they are supposed to configure. They can use this to register objects, composites, services etc. and the additional metadata that may exist for these artifacts.

      An Assembler may create new Modules by calling `ModuleAssembly.layer()` and then `LayerAssembly.module(String)` (String)}. This allows an Assembler to bootstrap an entire Layer with more Modules.

      Parameters:
        `module` - the Module to assemble
      Throws:
        `AssemblyException` - thrown if the assembler tries to do something illegal

    - #### assembleServer

          protected final void assembleServer(ModuleAssembly module)

    - #### configurationEntity

          protected Class<? extends JettyConfiguration> configurationEntity()

    - #### httpService

          protected Class<? extends JettyService> httpService()