C# Class Universe.Services.AssetCAPS

Inheritance: IExternalCapsRequestHandler
Show file Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
REDIRECT_URL string
m_AgentID UUID
m_assetService IAssetService
m_j2kDecoder IJ2KDecoder

Public Methods

Method Description
BakedTextureUploaded ( byte data, UUID &newAssetID ) : void
IncomingCapsDestruction ( ) : void
IncomingCapsRequest ( UUID agentID, Framework region, ISimulationBase simbase, OSDMap &capURLs ) : void
ProcessGetMesh ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
UploadBakedTexture ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]

Private Methods

Method Description
ConvertTextureData ( AssetBase texture, string format ) : byte[]
FetchTexture ( OSHttpRequest httpRequest, OSHttpResponse httpResponse, UUID textureID, string format, byte &response ) : bool

GetEncoderInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo
ProcessGetTexture ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
TryParseRange ( string header, int &start, int &end ) : bool

* Parse a range header. *

* As per http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, * this obeys range headers with two values (e.g. 533-4165) and no second value (e.g. 533-). * Where there is no value, -1 is returned. Also handles a range like (-4165) where -1 is * returned for the starting value.

WriteTextureData ( OSHttpRequest request, OSHttpResponse response, AssetBase texture, string format ) : byte[]

Method Details

BakedTextureUploaded() public method

public BakedTextureUploaded ( byte data, UUID &newAssetID ) : void
data byte
newAssetID UUID
return void

IncomingCapsDestruction() public method

public IncomingCapsDestruction ( ) : void
return void

IncomingCapsRequest() public method

public IncomingCapsRequest ( UUID agentID, Framework region, ISimulationBase simbase, OSDMap &capURLs ) : void
agentID UUID
region Framework
simbase ISimulationBase
capURLs OSDMap
return void

ProcessGetMesh() public method

public ProcessGetMesh ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

UploadBakedTexture() public method

public UploadBakedTexture ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

Property Details

REDIRECT_URL protected property

protected string REDIRECT_URL
return string

m_AgentID protected property

protected UUID m_AgentID
return UUID

m_assetService protected property

protected IAssetService m_assetService
return IAssetService

m_j2kDecoder protected property

protected IJ2KDecoder m_j2kDecoder
return IJ2KDecoder