OpenSim
|
Interface to OpenSimulator's built in HTTP server. Use this to register handlers (http, llsd, xmlrpc, etc.) for given URLs. More...
Public Member Functions | |
bool | AddHTTPHandler (string methodName, GenericHTTPMethod handler) |
Add a handler for an HTTP request. More... | |
bool | AddPollServiceHTTPHandler (string methodName, PollServiceEventArgs args) |
bool | AddLLSDHandler (string path, LLSDMethod handler) |
Adds a LLSD handler, yay. More... | |
void | AddStreamHandler (IRequestHandler handler) |
Add a stream handler to the http server. If the handler already exists, then nothing happens. More... | |
bool | AddXmlRPCHandler (string method, XmlRpcMethod handler) |
bool | AddXmlRPCHandler (string method, XmlRpcMethod handler, bool keepAlive) |
bool | AddJsonRPCHandler (string method, JsonRPCMethod handler) |
void | AddWebSocketHandler (string servicepath, BaseHttpServer.WebSocketRequestDelegate handler) |
Websocket HTTP server handlers. More... | |
void | RemoveWebSocketHandler (string servicepath) |
XmlRpcMethod | GetXmlRPCHandler (string method) |
Gets the XML RPC handler for given method name More... | |
bool | SetDefaultLLSDHandler (DefaultLLSDMethod handler) |
void | RemoveHTTPHandler (string httpMethod, string path) |
Remove an HTTP handler More... | |
void | RemovePollServiceHTTPHandler (string httpMethod, string path) |
bool | RemoveLLSDHandler (string path, LLSDMethod handler) |
void | RemoveStreamHandler (string httpMethod, string path) |
void | RemoveXmlRPCHandler (string method) |
void | RemoveJsonRPCHandler (string method) |
string | GetHTTP404 (string host) |
string | GetHTTP500 () |
Properties | |
uint | SSLPort [get] |
string | SSLCommonName [get] |
uint | Port [get] |
bool | UseSSL [get] |
Interface to OpenSimulator's built in HTTP server. Use this to register handlers (http, llsd, xmlrpc, etc.) for given URLs.
Definition at line 36 of file IHttpServer.cs.
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.AddHTTPHandler | ( | string | methodName, |
GenericHTTPMethod | handler | ||
) |
Add a handler for an HTTP request.
This handler can actually be invoked either as
http://<hostname>:<port>/?method=<methodName>
or
http://<hostname>:<port><method>
if the method name starts with a slash. For example, AddHTTPHandler("/object/", ...) on a standalone region server will register a handler that can be invoked with either
http://localhost:9000/?method=/object/
or
In addition, the handler invoked by the HTTP server for any request is the one when best matches the request URI. So if a handler for "/myapp/" is registered and a request for "/myapp/page" is received, then the "/myapp/" handler is invoked if no "/myapp/page" handler exists.
methodName | |
handler |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.AddJsonRPCHandler | ( | string | method, |
JsonRPCMethod | handler | ||
) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.AddLLSDHandler | ( | string | path, |
LLSDMethod | handler | ||
) |
Adds a LLSD handler, yay.
path | /resource/ path |
handler | handle the LLSD response |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.AddPollServiceHTTPHandler | ( | string | methodName, |
PollServiceEventArgs | args | ||
) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.AddStreamHandler | ( | IRequestHandler | handler | ) |
Add a stream handler to the http server. If the handler already exists, then nothing happens.
handler |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.AddWebSocketHandler | ( | string | servicepath, |
BaseHttpServer.WebSocketRequestDelegate | handler | ||
) |
Websocket HTTP server handlers.
servicepath | |
handler |
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.AddXmlRPCHandler | ( | string | method, |
XmlRpcMethod | handler | ||
) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.AddXmlRPCHandler | ( | string | method, |
XmlRpcMethod | handler, | ||
bool | keepAlive | ||
) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
string OpenSim.Framework.Servers.HttpServer.IHttpServer.GetHTTP404 | ( | string | host | ) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
string OpenSim.Framework.Servers.HttpServer.IHttpServer.GetHTTP500 | ( | ) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
XmlRpcMethod OpenSim.Framework.Servers.HttpServer.IHttpServer.GetXmlRPCHandler | ( | string | method | ) |
Gets the XML RPC handler for given method name
method | Name of the method |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.RemoveHTTPHandler | ( | string | httpMethod, |
string | path | ||
) |
Remove an HTTP handler
httpMethod | |
path |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.RemoveJsonRPCHandler | ( | string | method | ) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.RemoveLLSDHandler | ( | string | path, |
LLSDMethod | handler | ||
) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.RemovePollServiceHTTPHandler | ( | string | httpMethod, |
string | path | ||
) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.RemoveStreamHandler | ( | string | httpMethod, |
string | path | ||
) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.RemoveWebSocketHandler | ( | string | servicepath | ) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
void OpenSim.Framework.Servers.HttpServer.IHttpServer.RemoveXmlRPCHandler | ( | string | method | ) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
bool OpenSim.Framework.Servers.HttpServer.IHttpServer.SetDefaultLLSDHandler | ( | DefaultLLSDMethod | handler | ) |
Implemented in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.
|
get |
Definition at line 41 of file IHttpServer.cs.
|
get |
Definition at line 39 of file IHttpServer.cs.
|
get |
Definition at line 38 of file IHttpServer.cs.
|
get |
Definition at line 42 of file IHttpServer.cs.