|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.portal.appintegrator.Utils
| Field Summary | |
protected static java.lang.String |
APPINTEGRATOR_COMPONET
the component name of THIS component |
| Constructor Summary | |
Utils()
|
|
| Method Summary | |
static java.lang.String |
beautifyURL(java.lang.String url)
Removes some "blemishes" from the URL like double && and leading ? |
static java.util.List |
chopURL(java.lang.String theUrl)
Returns a list that contains the single pieces of the given URL in separate slots. |
static java.lang.String |
dropDomains(java.lang.String uri,
int n)
returns the suffix of the given URL where the first n domain labels are dropped |
static javax.servlet.http.Cookie |
getSessionCookie(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path)
returns a session cookie with the given name, value, domain and path |
static ISystem |
getSystem(java.lang.String alias,
com.sap.security.api.IUser user)
returns the ISystem object for the given alias |
static ISystems |
getSystemLandscapeService()
returns the system landscape service |
static long |
hash(java.lang.Object obj)
|
static void |
includeJSP(com.sapportals.portal.prt.component.IPortalComponentRequest request,
com.sapportals.portal.prt.component.IPortalComponentResponse response,
IIntegrationLayer layer,
java.lang.String name)
returns the corresponding jsp resource for the given technique |
static void |
info(java.lang.String message)
writes the given message into the log-file |
static void |
log(java.lang.String message,
com.sapportals.portal.prt.logger.Level level)
writes the given exception into the log-file |
static void |
log(java.lang.Throwable e,
java.lang.String message,
com.sapportals.portal.prt.logger.Level level)
writes the given exception into the log-file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String APPINTEGRATOR_COMPONET
| Constructor Detail |
public Utils()
| Method Detail |
public static java.util.List chopURL(java.lang.String theUrl)
The URL http://server.domain.com/path?n1=v1&n2=v2&n3=v3
is choped into the following list:
[ "http://server.domain.com/path", [n1, v1], [n2, v2], [n3, v3] ]
theUrl - the URLpublic static long hash(java.lang.Object obj)
public static java.lang.String beautifyURL(java.lang.String url)
url - the url
public static javax.servlet.http.Cookie getSessionCookie(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path)
public static java.lang.String dropDomains(java.lang.String uri,
int n)
public static void log(java.lang.Throwable e,
java.lang.String message,
com.sapportals.portal.prt.logger.Level level)
public static void log(java.lang.String message,
com.sapportals.portal.prt.logger.Level level)
public static void info(java.lang.String message)
public static void includeJSP(com.sapportals.portal.prt.component.IPortalComponentRequest request,
com.sapportals.portal.prt.component.IPortalComponentResponse response,
IIntegrationLayer layer,
java.lang.String name)
public static ISystems getSystemLandscapeService()
public static ISystem getSystem(java.lang.String alias,
com.sap.security.api.IUser user)
throws javax.naming.NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||