* Move common string aggregation for caps seed path to a method in CapsUtil

This commit is contained in:
Justin Clarke Casey
2009-01-06 18:06:53 +00:00
parent e8dba51247
commit 715a776f7d
6 changed files with 33 additions and 15 deletions

View File

@@ -35,6 +35,16 @@ namespace OpenSim.Framework.Communications.Capabilities
/// </summary>
public class CapsUtil
{
/// <summary>
/// Generate a CAPS seed path using a previously generated CAPS object path component
/// </summary>
/// <param name="capsKey"></param>
/// <returns></returns>
public static string GetCapsSeedPath(string capsObjectPath)
{
return "/CAPS/" + capsKey + "0000/";
}
public static string GetRandomCapsPath()
{
UUID caps = UUID.Random();