OpenSim
|
Public Member Functions | |
HttpRequestModule () | |
UUID | MakeHttpRequest (string url, string parameters, string body) |
UUID | StartHttpRequest (uint localID, UUID itemID, string url, List< string > parameters, Dictionary< string, string > headers, string body, out HttpInitialRequestStatus status) |
Starts the http request. More... | |
bool | CheckAllowed (Uri url) |
Would a caller to this module be allowed to make a request to the given URL? More... | |
bool | StartHttpRequest (HttpRequestClass req) |
void | StopHttpRequest (uint m_localID, UUID m_itemID) |
Stop and remove all http requests for the given script. More... | |
IServiceRequest | GetNextCompletedRequest () |
void | RemoveCompletedRequest (UUID id) |
void | Initialise (IConfigSource config) |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created. More... | |
void | AddRegion (Scene scene) |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called. More... | |
void | RemoveRegion (Scene scene) |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed. More... | |
void | PostInitialise () |
This is called exactly once after all the shared region-modules have been instanciated and IRegionModuleBase.Initialised. More... | |
void | RegionLoaded (Scene scene) |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module. More... | |
void | Close () |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore. More... | |
Static Public Member Functions | |
static bool | ValidateServerCertificate (object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) |
Static Public Attributes | |
static SmartThreadPool | ThreadPool = null |
Properties | |
string | Name [get] |
Type | ReplaceableInterface [get] |
Properties inherited from OpenSim.Region.Framework.Interfaces.IRegionModuleBase | |
string | Name [get] |
Type | ReplaceableInterface [get] |
If this returns non-null, it is the type of an interface that this module intends to register. This will cause the loader to defer loading of this module until all other modules have been loaded. If no other module has registered the interface by then, this module will be activated, else it will remain inactive, letting the other module take over. This should return non-null ONLY in modules that are intended to be easily replaceable, e.g. stub implementations that the developer expects to be replaced by third party provided modules. More... | |
Definition at line 93 of file ScriptsHttpRequests.cs.
|
inline |
Definition at line 111 of file ScriptsHttpRequests.cs.
|
inline |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 398 of file ScriptsHttpRequests.cs.
|
inline |
Would a caller to this module be allowed to make a request to the given URL?
Definition at line 280 of file ScriptsHttpRequests.cs.
|
inline |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 420 of file ScriptsHttpRequests.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IHttpRequestModule.
Definition at line 325 of file ScriptsHttpRequests.cs.
|
inline |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created.
source | A IConfigSource |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 363 of file ScriptsHttpRequests.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IHttpRequestModule.
Definition at line 158 of file ScriptsHttpRequests.cs.
|
inline |
This is called exactly once after all the shared region-modules have been instanciated and IRegionModuleBase.Initialised.
Implements OpenSim.Region.Framework.Interfaces.ISharedRegionModule.
Definition at line 412 of file ScriptsHttpRequests.cs.
|
inline |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 416 of file ScriptsHttpRequests.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IHttpRequestModule.
Definition at line 345 of file ScriptsHttpRequests.cs.
|
inline |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 405 of file ScriptsHttpRequests.cs.
|
inline |
Starts the http request.
This is carried out asynchronously unless it fails initial checks. Results are fetched by the script engine HTTP requests module to be distributed back to scripts via a script event.
localID | Local ID of the object containing the script making the request. |
itemID | Item ID of the script making the request. |
url | Url to request. |
parameters | LSL parameters for the request. |
headers | Extra headers for the request. |
body | Body of the request. |
status | Initial status of the request. If OK then the request is actually made to the URL. Subsequent status is then returned via IServiceRequest when the response is asynchronously fetched. |
Implements OpenSim.Region.Framework.Interfaces.IHttpRequestModule.
Definition at line 163 of file ScriptsHttpRequests.cs.
|
inline |
Definition at line 285 of file ScriptsHttpRequests.cs.
|
inline |
Stop and remove all http requests for the given script.
id |
Implements OpenSim.Region.Framework.Interfaces.IHttpRequestModule.
Definition at line 300 of file ScriptsHttpRequests.cs.
|
inlinestatic |
Definition at line 116 of file ScriptsHttpRequests.cs.
|
static |
Definition at line 109 of file ScriptsHttpRequests.cs.
|
get |
Definition at line 425 of file ScriptsHttpRequests.cs.
|
get |
Definition at line 430 of file ScriptsHttpRequests.cs.