Package org.wso2.carbon.integrator.core
Class Utils
- java.lang.Object
-
- org.wso2.carbon.integrator.core.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 tenantsstatic org.wso2.carbon.webapp.mgt.WebApplication
getStartedWebapp(String path)
Get the details of a deployed webAppstatic 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)
-
-
-
Method Detail
-
getProtocolPort
public static int getProtocolPort(String protocol)
-
getStartedWebapp
public static org.wso2.carbon.webapp.mgt.WebApplication getStartedWebapp(String path)
Get the details of a deployed webApp- Parameters:
path
- URI path- Returns:
- meta data for webapp
-
getStartedTenantWebapp
public static org.wso2.carbon.webapp.mgt.WebApplication getStartedTenantWebapp(String tenantDomain, String path)
Get the details of a deployed webapp for tenants- Parameters:
path
- URI path- Returns:
- meta data for webapp
-
getDSSJsonBuilder
public static String getDSSJsonBuilder() throws IOException, XMLStreamException
- Throws:
IOException
XMLStreamException
-
createEndpoint
public static org.apache.synapse.endpoints.Endpoint createEndpoint(String addressURI, org.apache.synapse.core.SynapseEnvironment environment)
-
getPassThroughJsonBuilder
public static String getPassThroughJsonBuilder() throws IOException, XMLStreamException
- Throws:
IOException
XMLStreamException
-
getDSSJsonFormatter
public static String getDSSJsonFormatter() throws IOException, XMLStreamException
- Throws:
IOException
XMLStreamException
-
getPassThroughJsonFormatter
public static String getPassThroughJsonFormatter() throws IOException, XMLStreamException
- Throws:
IOException
XMLStreamException
-
setIntegratorHeader
public static void setIntegratorHeader(org.apache.synapse.MessageContext synCtx, String uri)
-
isDataService
public static boolean isDataService(org.apache.axis2.context.MessageContext messageContext) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
isTenantDataService
public static boolean isTenantDataService(org.apache.axis2.context.MessageContext messageContext) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
rewriteLocationHeader
public static void rewriteLocationHeader(String location, org.apache.synapse.MessageContext messageContext)
In this method we rewrite the location header which comes from the tomcat transport.- Parameters:
location
- location urlmessageContext
- message context.
-
isStatefulService
public 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.- Parameters:
axisService
- AxisService- Returns:
- isStatefulService boolean
-
-