@ManagedResource(componentName="Endpoint",
description="Responsible for managing server instances.")
public class ManagedApi
extends Object
implements org.apache.cxf.management.ManagedComponent, org.apache.cxf.endpoint.ServerLifeCycleListener
| Modifier and Type | Field and Description |
|---|---|
static String |
DOMAIN_NAME |
static String |
ENDPOINT_NAME |
static String |
INDENTION |
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
ManagedApi(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint ep,
org.apache.cxf.endpoint.Server s) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
String |
getJSONSchema() |
String |
getJSONSchemaForClass(String clsName) |
String |
getJSONSchemaForOperation(String operationName) |
ObjectName |
getObjectName() |
String |
getPackageNameByNameSpaceURI(String nameSpaceURI) |
String |
getServletContext() |
static String |
getSingletonCxfServletContext() |
String |
getState() |
boolean |
isSwagger() |
boolean |
isWADL() |
boolean |
isWSDL() |
String |
jsonToXml(String jsonText,
String pojoType) |
static void |
setSingletonCxfServletContext(String singletonCxfServletContext) |
void |
startServer(org.apache.cxf.endpoint.Server s) |
void |
stopServer(org.apache.cxf.endpoint.Server s) |
public static final String ENDPOINT_NAME
public static final String SERVICE_NAME
public static final String INDENTION
public static final String DOMAIN_NAME
public ManagedApi(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint ep,
org.apache.cxf.endpoint.Server s)
public static String getSingletonCxfServletContext()
public static void setSingletonCxfServletContext(String singletonCxfServletContext)
@ManagedAttribute(description="Server State") public String getState()
@ManagedAttribute(description="Address Attribute",
currencyTimeLimit=60)
public String getAddress()
@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 org.apache.cxf.management.ManagedComponentJMExceptionpublic void startServer(org.apache.cxf.endpoint.Server s)
startServer in interface org.apache.cxf.endpoint.ServerLifeCycleListenerpublic void stopServer(org.apache.cxf.endpoint.Server s)
stopServer in interface org.apache.cxf.endpoint.ServerLifeCycleListenerCopyright © 2011–2016 Red Hat. All rights reserved.