public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.synapse.endpoints.Endpoint |
createEndpoint(String addressURI,
org.apache.synapse.core.SynapseEnvironment environment) |
static String |
getContext(String uri) |
static String |
getDSSJsonBuilder() |
static String |
getDSSJsonFormatter() |
static String |
getHostname(String host) |
static String |
getPassThroughJsonBuilder() |
static String |
getPassThroughJsonFormatter() |
static int |
getProtocolPort(String protocol) |
static org.wso2.carbon.webapp.mgt.WebApplication |
getStartedTenantWebapp(String tenantDomain,
String path)
Get the details of a deployed webapp for tenants
|
static org.wso2.carbon.webapp.mgt.WebApplication |
getStartedWebapp(String path)
Get the details of a deployed webApp
|
static boolean |
isDataService(org.apache.axis2.context.MessageContext messageContext) |
static boolean |
isStatefulService(org.apache.axis2.description.AxisService axisService)
In this method check we check whether that particular service is a admin service or session enabled service.
|
static boolean |
isTenantDataService(org.apache.axis2.context.MessageContext messageContext) |
static void |
rewriteLocationHeader(String location,
org.apache.synapse.MessageContext messageContext)
In this method we rewrite the location header which comes from the tomcat transport.
|
static void |
setIntegratorHeader(org.apache.synapse.MessageContext synCtx,
String uri) |
public static int getProtocolPort(String protocol)
public static org.wso2.carbon.webapp.mgt.WebApplication getStartedWebapp(String path)
path
- URI pathpublic static org.wso2.carbon.webapp.mgt.WebApplication getStartedTenantWebapp(String tenantDomain, String path)
path
- URI pathpublic static String getDSSJsonBuilder() throws IOException, XMLStreamException
IOException
XMLStreamException
public static org.apache.synapse.endpoints.Endpoint createEndpoint(String addressURI, org.apache.synapse.core.SynapseEnvironment environment)
public static String getPassThroughJsonBuilder() throws IOException, XMLStreamException
IOException
XMLStreamException
public static String getDSSJsonFormatter() throws IOException, XMLStreamException
IOException
XMLStreamException
public static String getPassThroughJsonFormatter() throws IOException, XMLStreamException
IOException
XMLStreamException
public static void setIntegratorHeader(org.apache.synapse.MessageContext synCtx, String uri)
public static boolean isDataService(org.apache.axis2.context.MessageContext messageContext) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public static boolean isTenantDataService(org.apache.axis2.context.MessageContext messageContext) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public static void rewriteLocationHeader(String location, org.apache.synapse.MessageContext messageContext)
location
- location urlmessageContext
- message context.public static boolean isStatefulService(org.apache.axis2.description.AxisService axisService)
axisService
- AxisServiceCopyright © 2022 WSO2. All rights reserved.