oracle.ifs.adk.http
Class HttpUtils
java.lang.Object
|
+--oracle.ifs.adk.http.HttpUtils
- public class HttpUtils
- extends java.lang.Object
This class provides a set of utility methods that will facilitate
in creating web applications
The methods provided are :
String getIfsPathFromJSPRedirect(HttpServletRequest)
String getIfsPathFromJSPRedirect(HttpServletRequest , String)
String getURLFromIfsPath(HttpServletRequest , String)
Method Summary |
static java.lang.String |
getIfsPathFromJSPRedirect(javax.servlet.http.HttpServletRequest req)
Get the value of the iFS path parameter passed to a JSP page by the
iFS HTTP server via the JSP lookup and redirect mechanism. |
static java.lang.String |
getIfsPathFromJSPRedirect(javax.servlet.http.HttpServletRequest req,
java.lang.String pathParameter)
Get the value of the iFS path parameter passed to a JSP page by the
iFS HTTP server via the JSP lookup and redirect mechanism. |
static java.lang.String |
getURLFromIfsPath(javax.servlet.http.HttpServletRequest req,
java.lang.String ifsPath)
Translate the given iFS path to into a URL that can be used to access that path
via the iFS HTTP server |
getIfsPathFromJSPRedirect
public static java.lang.String getIfsPathFromJSPRedirect(javax.servlet.http.HttpServletRequest req)
- Get the value of the iFS path parameter passed to a JSP page by the
iFS HTTP server via the JSP lookup and redirect mechanism. The name
of the parameter is the default value ("path").
- Parameters:
req
- the HttpServletRequest object containing the
representation of the client's request- Returns:
- the value of the iFS path
getIfsPathFromJSPRedirect
public static java.lang.String getIfsPathFromJSPRedirect(javax.servlet.http.HttpServletRequest req,
java.lang.String pathParameter)
- Get the value of the iFS path parameter passed to a JSP page by the
iFS HTTP server via the JSP lookup and redirect mechanism.
- Parameters:
req
- the HttpServletRequest object containing the
representation of the client's requestpathParameter
- the name of the parameter holding the path value- Returns:
- the value of the iFS path
getURLFromIfsPath
public static java.lang.String getURLFromIfsPath(javax.servlet.http.HttpServletRequest req,
java.lang.String ifsPath)
- Translate the given iFS path to into a URL that can be used to access that path
via the iFS HTTP server
- Parameters:
req
- the HttpServletRequest object containing the
representation of the client's requestifsPath
- the value of the iFS path to be translated- Returns:
- a URL which can be used to access the given iFS path
via the iFS HTTP server
(c) 2002 Copyright Oracle Corporation. All rights reserved.