本文整理汇总了C#中OpenSim.Framework.Servers.HttpServer.BaseHttpServer.SetDefaultLLSDHandler方法的典型用法代码示例。如果您正苦于以下问题:C# BaseHttpServer.SetDefaultLLSDHandler方法的具体用法?C# BaseHttpServer.SetDefaultLLSDHandler怎么用?C# BaseHttpServer.SetDefaultLLSDHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OpenSim.Framework.Servers.HttpServer.BaseHttpServer
的用法示例。
在下文中一共展示了BaseHttpServer.SetDefaultLLSDHandler方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterHandlers
public void RegisterHandlers(BaseHttpServer httpServer, bool registerLLSDHandler, bool registerOpenIDHandlers)
{
m_httpServer = httpServer;
//m_httpServer.AddXmlRPCHandler("login_to_simulator", XmlRpcLoginMethod);
m_httpServer.AddXmlRPCHandler("login_to_simulator", m_LoginSwitch.XmlRpcLoginMethodSwitch);
m_httpServer.AddHTTPHandler("login", ProcessHTMLLogin);
m_httpServer.AddXmlRPCHandler("set_login_params", XmlRPCSetLoginParams);
//m_httpServer.AddXmlRPCHandler("check_auth_session", XmlRPCCheckAuthSession, false);
m_httpServer.AddXmlRPCHandler("check_auth_session", m_LoginSwitch.XmlRPCCheckAuthSessionSwitch, false);
if (registerLLSDHandler)
{
m_httpServer.SetDefaultLLSDHandler(LLSDLoginMethod);
}
// Handler for the root page
m_httpServer.AddStreamHandler(new RootPageStreamHandler("GET", "/", this));
if (!String.IsNullOrEmpty(m_config.ContentFilePath))
{
// Handler for misc. web content
m_httpServer.AddStreamHandler(new FilesystemStreamHandler("GET", "/content/", m_config.ContentFilePath, this));
}
if (registerOpenIDHandlers)
{
CableBeachLoginService loginService = new CableBeachLoginService(this.UserManager, this.InterInventoryService,
this.LibraryRootFolder, this.m_config, this.WelcomeMessage, this.RegionProfileService);
CableBeachState.LoginService = loginService;
// Handler for OpenID avatar identity pages
m_httpServer.AddStreamHandler(new OpenIdUserPageStreamHandler("GET", "/users/", this));
// Handlers for the OpenID endpoint server
m_httpServer.AddStreamHandler(new OpenIdProviderStreamHandler("POST", "/openid/server", this));
m_httpServer.AddStreamHandler(new OpenIdProviderStreamHandler("GET", "/openid/server", this));
// Handlers for the Cable Beach login page
m_httpServer.AddStreamHandler(new OpenIdLoginStreamHandler("POST", "/login", this));
m_httpServer.AddStreamHandler(new OpenIdLoginStreamHandler("GET", "/login", this));
// Handler for the Facebook Connect login path
m_httpServer.AddStreamHandler(new FacebookStreamHandler("GET", "/facebook/login", this));
}
}