@ManagedResource(componentName="Endpoint", description="Responsible for managing server instances.") public class ManagedEndpoint extends Object implements ManagedComponent, ServerLifeCycleListener
| Modifier and Type | Field and Description |
|---|---|
static String |
ENDPOINT_NAME |
static String |
INDENTION |
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
ManagedEndpoint(Bus b,
Endpoint ep,
Server s) |
| 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) |
public static final String ENDPOINT_NAME
public static final String SERVICE_NAME
public static final String INDENTION
@ManagedOperation public void start()
@ManagedOperation public void stop()
@ManagedOperation public void destroy()
@ManagedAttribute(description="Address Attribute", currencyTimeLimit=60) public String getAddress()
@ManagedAttribute(description="TransportId Attribute", currencyTimeLimit=60) public String getTransportId()
@ManagedAttribute(description="Server State") public String getState()
@ManagedAttribute(description="The cxf servlet context", currencyTimeLimit=60) public String getServletContext()
@ManagedAttribute(description="if the endpoint has swagger doc or not", currencyTimeLimit=60) public boolean isSwagger()
@ManagedAttribute(description="if the endpoint has wsdl doc or not", currencyTimeLimit=60) public boolean isWSDL()
@ManagedAttribute(description="if the endpoint has WADL doc or not", currencyTimeLimit=60) public boolean isWADL()
@ManagedOperation(description="get the JSON schema from a given endpoint", currencyTimeLimit=60) public String getJSONSchema()
@ManagedOperation(description="get the JSON schema from a given class", currencyTimeLimit=60) public String getJSONSchemaForClass(String clsName)
@ManagedOperation(description="get the JSON schema from a given soap endpoint for a given operation", currencyTimeLimit=60) public String getJSONSchemaForOperation(String operationName)
@ManagedOperation(description="get the package name for a given namespace URI", currencyTimeLimit=60) public String getPackageNameByNameSpaceURI(String nameSpaceURI)
@ManagedOperation(description="get xml payload from json payload", currencyTimeLimit=60) public String jsonToXml(String jsonText, String pojoType)
public ObjectName getObjectName() throws JMException
getObjectName in interface ManagedComponentJMExceptionpublic void startServer(Server s)
startServer in interface ServerLifeCycleListenerpublic void stopServer(Server s)
stopServer in interface ServerLifeCycleListenerApache CXF