This class is a wrapper for the raw, SWIG-generated iContext interface. It is part of the
pilotpython module, which is available in the Python (on Server) component.
class Context(builtins.object)
Context.__init__(iCtxt)
Description
Constructor. takes an iCtxt as its parameter.
Input parameters
param iCtxt: Context object to
wrap
type iCtxt: swigpython3.iContext
Return value
None
Context.findResourceByName(name)
Description
Returns a PropertyCollection of data for the named resource.
Input parameters
param name: The name of the resource to look
for
type name: str
Return value
returns: Reference to
PropertyCollection
rtype:
PropertyCollection
Context.getComponentParameters()
Description
Returns the component's parameter set.
Input parameters
None
Return value
returns: Reference to
PropertyCollection
rtype:
PropertyCollection
Context.getGlobalData()
Description
Returns the root node of the global data tree.
Input parameters
None
Return value
returns: Reference to root node
rtype: Node
Context.getGlobalProperties()
Description
Gets the global protocol properties as a PropertyCollection object.
Input parameters
None
Return value
returns: Global properties if present
rtype: PropertyCollection or None
Context.getRawContext()
Description
Provides direct access to the underlying iContxt, in case this is
needed.
Input parameters
None
Return value
returns: Reference to wrapped iContext
rtype: swigpython3.iContext
Context.getCookies(url,
cookies)
Description
Fills a property collection containing the cookies that would be sent by the
Http Connector for the given URL. The name of each property corresponds to the
cookie name, and the value corresponds to the cookie's value.
Input parameters
param url: URL to inspect
type
url: str or unicode
param
cookies: The property collection that will receive the
output
type cookies:
PropertyCollection
Return value
None
Context.makeNewNode()
Description
Creates a new Node
Input parameters
None
Return value
returns: new node
rtype: Node
Data descriptors defined here
Context.__dict__
Description
dictionary for instance variables (if defined)
Context.__weakref__
Description
list of weak references to the object (if defined)