29 using System.Reflection;
31 using OpenSim.Server.Base;
32 using OpenSim.Services.Interfaces;
33 using OpenSim.Framework.Servers.HttpServer;
34 using OpenSim.Framework;
35 using OpenSim.Server.Handlers.Base;
38 namespace OpenSim.Server.Handlers.Profiles
62 base(config, server, configName)
64 ConfigName =
"UserProfilesService";
65 if(!
string.IsNullOrEmpty(configName))
66 ConfigName = configName;
68 IConfig serverConfig = config.Configs[ConfigName];
69 if (serverConfig == null)
70 throw new Exception(String.Format(
"No section {0} in config file", ConfigName));
72 if(!serverConfig.GetBoolean(
"Enabled",
false))
82 string service = serverConfig.GetString(
"LocalServiceModule", String.Empty);
84 Object[] args =
new Object[] { config, ConfigName };
89 Server.AddJsonRPCHandler(
"avatarclassifiedsrequest", handler.AvatarClassifiedsRequest);
90 Server.AddJsonRPCHandler(
"classified_update", handler.ClassifiedUpdate);
93 Server.AddJsonRPCHandler(
"avatarpicksrequest", handler.AvatarPicksRequest);
94 Server.AddJsonRPCHandler(
"pickinforequest", handler.PickInfoRequest);
95 Server.AddJsonRPCHandler(
"picks_update", handler.PicksUpdate);
96 Server.AddJsonRPCHandler(
"picks_delete", handler.PicksDelete);
97 Server.AddJsonRPCHandler(
"avatarnotesrequest", handler.AvatarNotesRequest);
98 Server.AddJsonRPCHandler(
"avatar_notes_update", handler.NotesUpdate);
99 Server.AddJsonRPCHandler(
"avatar_properties_request", handler.AvatarPropertiesRequest);
100 Server.AddJsonRPCHandler(
"avatar_properties_update", handler.AvatarPropertiesUpdate);
101 Server.AddJsonRPCHandler(
"avatar_interests_update", handler.AvatarInterestsUpdate);
102 Server.AddJsonRPCHandler(
"user_preferences_update", handler.UserPreferenecesUpdate);
103 Server.AddJsonRPCHandler(
"user_preferences_request", handler.UserPreferencesRequest);
104 Server.AddJsonRPCHandler(
"image_assets_request", handler.AvatarImageAssetsRequest);
105 Server.AddJsonRPCHandler(
"user_data_request", handler.RequestUserAppData);
106 Server.AddJsonRPCHandler(
"user_data_update", handler.UpdateUserAppData);
UserProfilesConnector(IConfigSource config, IHttpServer server, string configName)
Interface to OpenSimulator's built in HTTP server. Use this to register handlers (http, llsd, xmlrpc, etc.) for given URLs.
Interactive OpenSim region server
delegate void ClassifiedDelete(UUID classifiedID, IClientAPI client)
delegate void ClassifiedInfoRequest(UUID classifiedID, IClientAPI client)