|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.URLProcessor
Deprecation Notice: This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten using a different framework in an upcoming release. This class is a "Gateway" for the HTML client; by "Gateway", it is meant that there are methods in this class that can be referenced directly by URLs pointing to the Windchill method server, independent of whether CGI or Servlets are being used. Any method that would like to be available directly via a URL needs to implement the following signature :
public static void Method Name( wt.httpgw.HTTPRequest req, wt.httpgw.HTTPResponse
resp )
throws List of exceptions {
The method will be available via URL using a URL that looks like:
http://Windchill Method Server Address/Class Name/Method
Name
In the case that the Windchill home page is at http://smith.ptc.com/WindchillGW,
the URL that would reference the method processForm of this class would
look like:
http://smith.ptc.com/WindchillGW/URLProcessor/processForm
This class defines several methods that receive the HTTP request, process
the request if necessary, and generate a response page. These "Gateway"
methods below each perform this general functionality, but each has a
specific purpose that is described in the method JavaDoc.
Supported API: true
Extendable: false
Field Summary | |
static String |
ACTION
Deprecated. |
static String |
CLASS
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private static Locale |
locale
Deprecated. |
static String |
NAME_HDR
Deprecated. |
static String |
NULL_ACTION
Deprecated. |
static String |
OID
Deprecated. |
private static ResourceBundle |
rb
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private static String |
SEP
Deprecated. |
static String |
UPDATE_COUNT
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
Constructor Summary | |
URLProcessor()
Deprecated. |
Method Summary | |
static Hashtable |
copyToUpperCase(Hashtable props)
Deprecated. |
static Properties |
copyToUpperCase(Properties props)
Deprecated. |
static void |
generateForm(HTTPRequest request,
HTTPResponse response)
Deprecated. |
protected static DefaultHTMLTemplateFactory |
getHtmlTemplateFactoryStatic()
Deprecated. |
static Locale |
getLocale(HTTPRequest request)
Deprecated. |
protected static TemplateProcessor |
getTemplateProcessorStatic(HTTPState httpState,
HTTPRequest request)
Deprecated. |
static void |
handleException(HTTPRequest req,
HTTPResponse resp,
Exception e)
Deprecated. |
static void |
handleIncludeRequest(Properties params,
Locale locale,
OutputStream os,
Object contextObject)
Deprecated. |
static void |
hanldleHTMLError(PrintWriter out,
String title,
String text,
Exception e)
Deprecated. |
static void |
invokeAction(HTTPRequest request,
HTTPResponse response)
Deprecated. |
private static boolean |
isProjectLinkOid(String nmOidStr)
Deprecated. |
static Properties |
mergeProperties(Properties receiver,
Properties sender)
Deprecated. |
static String |
parameterValue(Properties params,
String paramName)
Deprecated. |
static void |
presentFormProcessorException(HTTPRequest request,
HTTPResponse response,
Exception e)
Deprecated. |
protected static void |
processAction(HTTPState httpState,
HTTPRequest request,
ContentHTTPStream contentStream)
Deprecated. |
static void |
processForm(HTTPRequest request,
HTTPResponse response)
Deprecated. |
static void |
processForm(HTTPRequest request,
HTTPResponse response,
InputStream is)
Deprecated. |
private static void |
put(Hashtable props,
String key,
String value)
Deprecated. Put the specified value in the Hashtable with the specified key, unless the key is already in use, in which case, add the value to a Vector stored under the same key |
static void |
readContextStatic(HTTPState httpState)
Deprecated. |
static void |
URLTemplateAction(HTTPRequest req,
HTTPResponse resp)
Deprecated. |
static void |
validatePostStringStatic(Properties parameters)
Deprecated. |
static void |
validatePostStringStatic(Properties parameters,
String jspAction)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static boolean VERBOSE
private static final ResourceBundle rb
private static Locale locale
public static final String NAME_HDR
public static final String ACTION
public static final String CLASS
public static final String OID
public static final String NULL_ACTION
public static final String UPDATE_COUNT
private static final String SEP
Constructor Detail |
public URLProcessor()
Method Detail |
public static void URLTemplateAction(HTTPRequest req, HTTPResponse resp) throws WTException
req
- resp
-
WTException
public static void handleIncludeRequest(Properties params, Locale locale, OutputStream os, Object contextObject) throws WTException
params
- locale
- os
- contextObject
-
WTException
public static void handleException(HTTPRequest req, HTTPResponse resp, Exception e) throws WTException
req
- resp
- e
-
WTException
public static Locale getLocale(HTTPRequest request)
request
-
public static String parameterValue(Properties params, String paramName) throws WTException
params
- paramName
-
WTException
public static void hanldleHTMLError(PrintWriter out, String title, String text, Exception e)
out
- title
- text
- e
- public static void processForm(HTTPRequest request, HTTPResponse response, InputStream is) throws WTException
request
- response
- is
-
WTException
public static void processForm(HTTPRequest request, HTTPResponse response) throws WTException
request
- response
-
WTException
public static void generateForm(HTTPRequest request, HTTPResponse response) throws WTException
request
- response
-
WTException
public static void invokeAction(HTTPRequest request, HTTPResponse response) throws WTException
request
- response
-
WTException
public static void readContextStatic(HTTPState httpState) throws WTException
httpState
-
WTException
public static void validatePostStringStatic(Properties parameters) throws WTException
parameters
-
WTException
public static void presentFormProcessorException(HTTPRequest request, HTTPResponse response, Exception e) throws WTException
request
- response
- e
-
WTException
protected static TemplateProcessor getTemplateProcessorStatic(HTTPState httpState, HTTPRequest request) throws WTException
WTException
protected static DefaultHTMLTemplateFactory getHtmlTemplateFactoryStatic()
protected static void processAction(HTTPState httpState, HTTPRequest request, ContentHTTPStream contentStream) throws WTException
WTException
public static Properties copyToUpperCase(Properties props)
public static Hashtable copyToUpperCase(Hashtable props)
public static Properties mergeProperties(Properties receiver, Properties sender)
private static void put(Hashtable props, String key, String value)
public static void validatePostStringStatic(Properties parameters, String jspAction) throws WTException
WTException
private static boolean isProjectLinkOid(String nmOidStr)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |