org.apache.cxf.endpoint

## Class ManagedEndpoint

- java.lang.Object
- - org.apache.cxf.endpoint.ManagedEndpoint

- All Implemented Interfaces:
    ServerLifeCycleListener, ManagedComponent

      @ManagedResource(componentName="Endpoint",
                       description="Responsible for managing server instances.")
      public class ManagedEndpoint
      extends Object
      implements ManagedComponent, ServerLifeCycleListener

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `ENDPOINT_NAME`
    `static String` | `INDENTION`
    `static String` | `SERVICE_NAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ManagedEndpoint(Bus b, Endpoint ep, Server s)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()`
    `String` | `getAddress()`
    `String` | `getJSONSchema()`
    `String` | `getJSONSchemaForClass(String clsName)`
    `String` | `getJSONSchemaForOperation(String operationName)`
    `ObjectName` | `getObjectName()`
    `String` | `getPackageNameByNameSpaceURI(String nameSpaceURI)`
    `String` | `getServletContext()`
    `String` | `getState()`
    `String` | `getTransportId()`
    `boolean` | `isSwagger()`
    `boolean` | `isWADL()`
    `boolean` | `isWSDL()`
    `String` | `jsonToXml(String jsonText, String pojoType)`
    `void` | `start()`
    `void` | `startServer(Server s)`
    `void` | `stop()`
    `void` | `stopServer(Server s)`

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

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

- - ### Field Detail

    - #### ENDPOINT_NAME

          public static final String ENDPOINT_NAME

      See Also:
        Constant Field Values

    - #### SERVICE_NAME

          public static final String SERVICE_NAME

      See Also:
        Constant Field Values

    - #### INDENTION

          public static final String INDENTION

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### ManagedEndpoint

          public ManagedEndpoint(Bus b,
                         Endpoint ep,
                         Server s)

  - ### Method Detail

    - #### start

          @ManagedOperation
          public void start()

    - #### stop

          @ManagedOperation
          public void stop()

    - #### destroy

          @ManagedOperation
          public void destroy()

    - #### getAddress

          @ManagedAttribute(description="Address Attribute",
                            currencyTimeLimit=60)
          public String getAddress()

    - #### getTransportId

          @ManagedAttribute(description="TransportId Attribute",
                            currencyTimeLimit=60)
          public String getTransportId()

    - #### getState

          @ManagedAttribute(description="Server State")
          public String getState()

    - #### getServletContext

          @ManagedAttribute(description="The cxf servlet context",
                            currencyTimeLimit=60)
          public String getServletContext()

    - #### isSwagger

          @ManagedAttribute(description="if the endpoint has swagger doc or not",
                            currencyTimeLimit=60)
          public boolean isSwagger()

    - #### isWSDL

          @ManagedAttribute(description="if the endpoint has wsdl doc or not",
                            currencyTimeLimit=60)
          public boolean isWSDL()

    - #### isWADL

          @ManagedAttribute(description="if the endpoint has WADL doc or not",
                            currencyTimeLimit=60)
          public boolean isWADL()

    - #### getJSONSchema

          @ManagedOperation(description="get the JSON schema from a given endpoint",
                            currencyTimeLimit=60)
          public String getJSONSchema()

    - #### getJSONSchemaForClass

          @ManagedOperation(description="get the JSON schema from a given class",
                            currencyTimeLimit=60)
          public String getJSONSchemaForClass(String clsName)

    - #### getJSONSchemaForOperation

          @ManagedOperation(description="get the JSON schema from a given soap endpoint for a given operation",
                            currencyTimeLimit=60)
          public String getJSONSchemaForOperation(String operationName)

    - #### getPackageNameByNameSpaceURI

          @ManagedOperation(description="get the package name for a given namespace URI",
                            currencyTimeLimit=60)
          public String getPackageNameByNameSpaceURI(String nameSpaceURI)

    - #### jsonToXml

          @ManagedOperation(description="get xml payload from json payload",
                            currencyTimeLimit=60)
          public String jsonToXml(String jsonText,
                                                                      String pojoType)

    - #### getObjectName

          public ObjectName getObjectName()
                                   throws JMException

      Specified by:
        `getObjectName` in interface `ManagedComponent`
      Throws:
        `JMException`

    - #### startServer

          public void startServer(Server s)

      Specified by:
        `startServer` in interface `ServerLifeCycleListener`

    - #### stopServer

          public void stopServer(Server s)

      Specified by:
        `stopServer` in interface `ServerLifeCycleListener`

Apache CXF