Package org.apache.synapse.rest
Class RESTUtils
- java.lang.Object
-
- org.apache.synapse.rest.RESTUtils
-
@Deprecated public class RESTUtils extends Object
Deprecated.Replaced byApiUtils
-
-
Constructor Summary
Constructors Constructor Description RESTUtils()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<RESTDispatcher>
getDispatchers()
Deprecated.Replaced byApiUtils.getDispatchers()
static String
getFullRequestPath(MessageContext synCtx)
Deprecated.Replaced byApiUtils.getFullRequestPath(MessageContext)
static String
getSubRequestPath(MessageContext synCtx)
Deprecated.Replaced byApiUtils.getSubRequestPath(MessageContext)
static boolean
matchApiPath(String path, String context)
Deprecated.Replaced byApiUtils.matchApiPath(String, String)
static void
populateQueryParamsToMessageContext(MessageContext synCtx)
Deprecated.static String
trimSlashes(String url)
Deprecated.Replaced byApiUtils.trimSlashes(String)
static String
trimTrailingSlashes(String url)
Deprecated.Replaced byApiUtils.trimTrailingSlashes(String)
-
-
-
Method Detail
-
trimSlashes
@Deprecated public static String trimSlashes(String url)
Deprecated.Replaced byApiUtils.trimSlashes(String)
-
trimTrailingSlashes
@Deprecated public static String trimTrailingSlashes(String url)
Deprecated.Replaced byApiUtils.trimTrailingSlashes(String)
-
getFullRequestPath
@Deprecated public static String getFullRequestPath(MessageContext synCtx)
Deprecated.Replaced byApiUtils.getFullRequestPath(MessageContext)
-
populateQueryParamsToMessageContext
@Deprecated public static void populateQueryParamsToMessageContext(MessageContext synCtx)
Deprecated.Populate Message context properties for the query parameters extracted from the url- Parameters:
synCtx
- MessageContext of the request
-
getSubRequestPath
@Deprecated public static String getSubRequestPath(MessageContext synCtx)
Deprecated.Replaced byApiUtils.getSubRequestPath(MessageContext)
-
getDispatchers
@Deprecated public static List<RESTDispatcher> getDispatchers()
Deprecated.Replaced byApiUtils.getDispatchers()
-
matchApiPath
@Deprecated public static boolean matchApiPath(String path, String context)
Deprecated.Replaced byApiUtils.matchApiPath(String, String)
Identify the API by matching the context of the invoking api with the path of each api in the api list.- Parameters:
path
- request pathcontext
- API context- Returns:
- true if the invoking api context matches with the path and false if the two values don't match
-
-