|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.sysadm.SysAdmServletHelper
The SysAdmServletHelper class is designed to work with the URLFactory to provide a series of accessory methods to build invokations through the System Administrator gateway.
This class's scope should not be extended beyond the construction of requests for System Admin gateways. If other gateways are required, they should be created based on the implementation provided here.
The SysAdmServletHelper utilizes the URLFactory to create and return HREFs according to the current context. If the URLFactory's requestURI is set, a relative HREF will be returned if possible. If no requestURI is present the HREF will be relative to the Windchill codebase.
For example,
if an System Administration gateway was set to http://hostname/Windchill/servlet/WindchillSAGW
and the requestURI for the URLFactory is set to the codebase
(in this example http://hostname/Windchill
)
a call to
buildSysAdmHREF( aURLFactory, "wt.httpgw.HTTPServer", "echo", null )
servlet/WindchillSAGW/wt.httpgw.HTTPServer/echo
"
URLFactory
Supported API: true
Extendable: false
Field Summary | |
static String |
SYSADM_URL
Constant for SysAdm URL |
private static HashMap |
SysAdmMap
Map of all SysAdm mappings |
Constructor Summary | |
SysAdmServletHelper()
|
Method Summary | |
static String |
buildSysAdmHREF(URLFactory aFactory)
Will return an HREF String to the SysAdm Gateway. |
static String |
buildSysAdmHREF(URLFactory aFactory,
String aClass)
Will return an HREF String to the SysAdm Gateway. |
static String |
buildSysAdmHREF(URLFactory aFactory,
String c,
String m,
HashMap params)
Will return a HREF String for a class and method invoked through the SysAdm Gateway. |
static String |
buildSysAdmHREF(URLFactory aFactory,
String c,
String m,
String params)
Will return a HREF String for a class and method invoked through the SysAdm Gateway. |
static String |
buildSysAdmHREF(URLFactory aFactory,
String c,
String m,
String f,
HashMap params)
Will return a HREF String for a class and method invoked through the SysAdm Gateway. |
static String |
buildSysAdmHREF(URLFactory aFactory,
String c,
String m,
String f,
String params)
Will return a HREF String for a class and method invoked through the SysAdm Gateway. |
private static String |
buildSysAdmMethodCall(URLFactory aFactory,
String c,
String m,
String f)
Using an URLFactory build a proper string for the package-path and resource for the desired class, method and optional file. |
static URL |
buildSysAdmURL(URLFactory aFactory)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
static URL |
buildSysAdmURL(URLFactory aFactory,
String aClass)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
static URL |
buildSysAdmURL(URLFactory aFactory,
String aClass,
HashMap params)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
static URL |
buildSysAdmURL(URLFactory aFactory,
String aClass,
String params)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
static URL |
buildSysAdmURL(URLFactory aFactory,
String c,
String m,
HashMap params)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
static URL |
buildSysAdmURL(URLFactory aFactory,
String c,
String m,
String params)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
static URL |
buildSysAdmURL(URLFactory aFactory,
String c,
String m,
String f,
HashMap params)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
static URL |
buildSysAdmURL(URLFactory aFactory,
String c,
String m,
String f,
String params)
Will return a URL for a class and method invoked through the SysAdm Gateway. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SYSADM_URL
private static HashMap SysAdmMap
Constructor Detail |
public SysAdmServletHelper()
Method Detail |
public static final String buildSysAdmHREF(URLFactory aFactory) throws WTException
aFactory
- The current URLFactory
WTException
public static final String buildSysAdmHREF(URLFactory aFactory, String aClass) throws WTException
aFactory
- The current URLFactoryaClass
- The class or resource
WTException
public static final String buildSysAdmHREF(URLFactory aFactory, String c, String m, String params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classparams
- The parameter string encoded already
WTException
- If the server-codebase could not be reached.public static final String buildSysAdmHREF(URLFactory aFactory, String c, String m, HashMap params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classparams
- The parameter hashmap not encoded.
WTException
- If the server-codebase could not be reached.public static final String buildSysAdmHREF(URLFactory aFactory, String c, String m, String f, String params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classf
- The filename appended to the URIparams
- The parameter string is pre-encoded encoded.
WTException
- If the server-codebase could not be reached.public static final String buildSysAdmHREF(URLFactory aFactory, String c, String m, String f, HashMap params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classf
- The filename appended to the URIparams
- The parameter hashmap not encoded.
WTException
- If the server-codebase could not be reached.private static final String buildSysAdmMethodCall(URLFactory aFactory, String c, String m, String f) throws WTException
If the URLFactory's codebase is defined as http://hostname/Windchill
and the SysAdm url in the wt.properties file is
http://hostname/Windchill/somepathToGateway then this method
should return a string of the form somepathToGateway/Class/
Method[/file]
aFactory
- The URLFactory instance.c
- The class.m
- The method.f
- The file
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory) throws WTException
aFactory
- The current URLFactory
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory, String aClass) throws WTException
aFactory
- The current URLFactoryaClass
- The class to append to the URL.
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory, String aClass, String params) throws WTException
aFactory
- The current URLFactoryaClass
- The class to append to the URL.params
- The encoded parameter string
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory, String aClass, HashMap params) throws WTException
aFactory
- The current URLFactoryaClass
- The class to append to the URL.params
- The hashmap of parameters
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory, String c, String m, String params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classparams
- The parameter string encoded.
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory, String c, String m, HashMap params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classparams
- The parameter hashmap not encoded.
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory, String c, String m, String f, String params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classf
- The filename to be added to the end of URIparams
- The parameter string encoded.
WTException
- If the server-codebase could not be reached.public static final URL buildSysAdmURL(URLFactory aFactory, String c, String m, String f, HashMap params) throws WTException
aFactory
- The current URLFactoryc
- The class to add to the hrefm
- The method to be invoked by the classf
- The filename to be added to the end of URIparams
- The parameter hashmap not encoded.
WTException
- If the server-codebase could not be reached.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |