|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.schema.client.SchemaUtils
SOAP client utility class that allows non Info*Engine clients to retrieve object schema from Windchill/Info*Engine. This class requires all jars contained in the released ie.rar (Info*Engine connector) and a j2ee.jar (may be supplied by a 3rdparty j2ee vendor).
Nested Class Summary | |
(package private) class |
SchemaUtils.CacheEntry
|
Field Summary | |
private javax.resource.cci.ConnectionFactory |
cxFactory
|
private IeConnectionSpec |
cxSpec
|
private String |
endpoint
|
private String |
generator
|
private IeManagedConnectionFactory |
managedCxFactory
|
private static String |
NULL
|
private static Hashtable |
schemaCache
|
private static long |
timeToLive
|
Constructor Summary | |
SchemaUtils()
Create a new SchemaUtils |
|
SchemaUtils(javax.resource.cci.ConnectionFactory cxFactory)
Create a new SchemaUtils with a previously configured ConnectionFactory |
Method Summary | |
Principal |
getAuthUser()
Get the "trusted" user |
String |
getEndpoint()
Get the SOAP endpoint |
String |
getGenerator()
Get the SchemaGenerator that will be used to create schema. |
Locale |
getLocale()
Get the local that is being sent with requests for schema |
String |
getPassword()
Get the password to be used when connecting to the SOAP endpoint |
static long |
getTimeToLive()
Get the time to live for cahced object |
String |
getUser()
Get the username to be used when connecting to the SOAP endpoint |
boolean |
isDescendedFrom(SchemaObject ancestor,
SchemaObject descendant)
Checks to see if one SchemaObject is the ancestor of another. |
SchemaObject |
querySchema(String type)
Request the schema definition for a type. |
void |
setAuthUser(Principal p)
Set the "trusted" user |
void |
setEndpoint(String s)
Set the SOAP endpoint. |
void |
setGenerator(String s)
Set the SchemaGenerator that should be use to create schema. |
void |
setLocale(Locale l)
Set the locale that should be sent with requests for schema |
void |
setPassword(String s)
Set the password to be used when connecting to the SOAP endpoint |
static void |
setTimeToLive(long ttl)
Set the time to live for cached objects |
void |
setUser(String s)
Set the username to be used when connecting to the SOAP endpoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String NULL
private static long timeToLive
private static Hashtable schemaCache
private String endpoint
private String generator
private javax.resource.cci.ConnectionFactory cxFactory
private IeConnectionSpec cxSpec
private IeManagedConnectionFactory managedCxFactory
Constructor Detail |
public SchemaUtils()
public SchemaUtils(javax.resource.cci.ConnectionFactory cxFactory)
cxFactory
- Method Detail |
public static void setTimeToLive(long ttl)
ttl
- the new time to live value in millisecondspublic static long getTimeToLive()
public void setEndpoint(String s)
Example: "http://host/Windchill/servlet/RPC"
s
- the new endpointpublic String getEndpoint()
public void setUser(String s)
s
- the usernamepublic String getUser()
public void setPassword(String s)
s
- the passwordpublic String getPassword()
public void setGenerator(String s)
The value of this property must be the fully qualified classname of a java class that implements the com.infoengine.schema.SchemaGenerator interface.
s
- the generator classname to usepublic String getGenerator()
public void setLocale(Locale l)
l
- the localepublic Locale getLocale()
public void setAuthUser(Principal p)
p
- the user principalpublic Principal getAuthUser()
public SchemaObject querySchema(String type) throws Exception
This method may returned previously retrieved and cached information. Objects are cached based on type and locale.
type
- the type to retrieve
Exception
- in the case of an errorpublic boolean isDescendedFrom(SchemaObject ancestor, SchemaObject descendant)
ancestor
- the ancestor type
descendant the descendant type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |