|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.config.SynapseConfigUtils
public class SynapseConfigUtils
Constructor Summary | |
---|---|
SynapseConfigUtils()
|
Method Summary | |
---|---|
static int |
getConnectTimeout()
|
static long |
getGlobalTimeoutInterval()
|
static InputSource |
getInputSourceFormURI(URI uri)
|
static InputStream |
getInputStream(Object o)
|
static Object |
getObject(URL url,
Properties properties)
Get an object from a given URL. |
static OMNode |
getOMElementFromURL(String urlStr,
String synapseHome)
Return an OMElement from a URL source |
static int |
getReadTimeout()
|
static StatisticsCollector |
getStatisticsCollector(ServerContextInformation contextInfo)
Get the StatisticsCollector from synapse env. |
static StreamSource |
getStreamSource(Object o)
Return a StreamSource for the given Object |
static SynapseEnvironment |
getSynapseEnvironment(AxisConfiguration axisCfg)
|
static long |
getTimeoutHandlerInterval()
|
static URLConnection |
getURLConnection(URL url)
Returns a URLCOnnection for given URL. |
static URL |
getURLFromPath(String path,
String synapseHome)
Utility method to resolve url(only If need) path using synapse home system property |
static XMLToObjectMapper |
getXmlToObjectMapper(String contentType)
Return a suitable XMLToObjectMapper for the given content type if one is available, else return null; |
static boolean |
isFailSafeEnabled(String componentName)
|
static SynapseConfiguration |
newConfiguration()
Construct a fresh SynapseConfiguration instance and registers the observers with it as specified in the synapse.properties file. |
static OMNode |
readNonXML(URL url)
Helper method to handle non-XMl resources |
static String |
resolveRelativeURI(String parentLocation,
String relativeLocation)
|
static void |
setDefaultFaultSequence(SynapseConfiguration config)
Return the fault sequence if one is not defined. |
static void |
setDefaultMainSequence(SynapseConfiguration config)
Return the main sequence if one is not defined. |
static OMElement |
stringToOM(String xml)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynapseConfigUtils()
Method Detail |
---|
public static StreamSource getStreamSource(Object o)
o
- the object
public static InputStream getInputStream(Object o)
public static Object getObject(URL url, Properties properties)
url
- the URL to the resourceproperties
- bag of properties to pass in any information to the factory
public static OMNode readNonXML(URL url)
url
- The resource url
public static OMNode getOMElementFromURL(String urlStr, String synapseHome) throws IOException
urlStr
- a URL stringsynapseHome
- synapse home parameter to be used
IOException
- for invalid URL's or IO errorspublic static InputSource getInputSourceFormURI(URI uri)
public static URLConnection getURLConnection(URL url)
url
- URL
public static XMLToObjectMapper getXmlToObjectMapper(String contentType)
contentType
- the content type for which a mapper is required
public static URL getURLFromPath(String path, String synapseHome)
path
- Path to the URLsynapseHome
- synapse home parameter value to be used
public static String resolveRelativeURI(String parentLocation, String relativeLocation)
public static int getConnectTimeout()
public static int getReadTimeout()
public static long getTimeoutHandlerInterval()
public static long getGlobalTimeoutInterval()
public static SynapseEnvironment getSynapseEnvironment(AxisConfiguration axisCfg)
public static StatisticsCollector getStatisticsCollector(ServerContextInformation contextInfo)
contextInfo
- server information
public static OMElement stringToOM(String xml)
public static SynapseConfiguration newConfiguration()
public static void setDefaultMainSequence(SynapseConfiguration config)
config
- the configuration to be updatedpublic static void setDefaultFaultSequence(SynapseConfiguration config)
config
- the configuration to be updatedpublic static boolean isFailSafeEnabled(String componentName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |