|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindoo.xpages2eclipse.tools.URLHelper
public class URLHelper
Helper class for servlet URL generation on the local Notes Client and on a Domino server
Constructor Summary | |
---|---|
URLHelper()
|
Method Summary | |
---|---|
static java.lang.String |
getBaseUrl(Database db,
java.lang.String servletName)
The method returns the base URL to access an X2E servlet. |
static java.lang.String[] |
getBaseUrlParts(Database db)
The method returns the prefix and suffix of the base url to access XLayer servlets |
static java.lang.String |
getRpcUrl(Database db,
java.lang.String type)
Method to build the RPC base URL (ending with a "/") |
static boolean |
isClient()
Use this method to check whether an XPages application is running locally or on a Domino server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLHelper()
Method Detail |
---|
public static boolean isClient()
true
if we're in the Notes Clientpublic static java.lang.String getRpcUrl(Database db, java.lang.String type)
db
- current context databasetype
- e.g. "js" for JavaScript or "j" for Java
public static java.lang.String[] getBaseUrlParts(Database db) throws NotesException, java.io.UnsupportedEncodingException
db
- context database
NotesException
java.io.UnsupportedEncodingException
public static java.lang.String getBaseUrl(Database db, java.lang.String servletName) throws NotesException, java.io.UnsupportedEncodingException
getBaseUrlParts(Database)
internally and concatenates prefix, servlet name and suffix to one string
db
- context databaseservletName
- name of servlet
NotesException
java.io.UnsupportedEncodingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |