to.etc.domui.parts
Class CachedImagePart

java.lang.Object
  extended by to.etc.domui.parts.CachedImagePart
All Implemented Interfaces:
IPartFactory, IUnbufferedPartFactory

public class CachedImagePart
extends java.lang.Object
implements IUnbufferedPartFactory


Nested Class Summary
static class CachedImagePart.ImageKeys
           
 
Constructor Summary
CachedImagePart()
           
 
Method Summary
protected  void decodeFormat(IParameterInfo pin, java.util.List<IImageConversionSpecifier> ik)
           
protected  void decodeMutations(IParameterInfo pin, java.util.List<IImageConversionSpecifier> list)
           
protected  void decodePage(IParameterInfo pin, java.util.List<IImageConversionSpecifier> ik)
          If we have a parameter "page=xxx" add a page selector
protected  void decodeResize(IParameterInfo pin, java.util.List<IImageConversionSpecifier> ik)
           
 void generate(DomApplication app, java.lang.String rurl, RequestContextImpl param)
           
protected  void generateImage(RequestContextImpl ri, FullImage fima)
           
static java.lang.String getURL(java.lang.String providerkey, java.lang.String instancekey, java.lang.String... convs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedImagePart

public CachedImagePart()
Method Detail

generate

public void generate(DomApplication app,
                     java.lang.String rurl,
                     RequestContextImpl param)
              throws java.lang.Exception
Specified by:
generate in interface IUnbufferedPartFactory
Throws:
java.lang.Exception

generateImage

protected void generateImage(RequestContextImpl ri,
                             FullImage fima)
                      throws java.lang.Exception
Throws:
java.lang.Exception

decodeMutations

protected void decodeMutations(IParameterInfo pin,
                               java.util.List<IImageConversionSpecifier> list)
                        throws java.lang.Exception
Throws:
java.lang.Exception

decodeResize

protected void decodeResize(IParameterInfo pin,
                            java.util.List<IImageConversionSpecifier> ik)
                     throws java.lang.Exception
Throws:
java.lang.Exception

decodePage

protected void decodePage(IParameterInfo pin,
                          java.util.List<IImageConversionSpecifier> ik)
                   throws java.lang.Exception
If we have a parameter "page=xxx" add a page selector

Parameters:
ik -
Throws:
java.lang.Exception

decodeFormat

protected void decodeFormat(IParameterInfo pin,
                            java.util.List<IImageConversionSpecifier> ik)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getURL

public static java.lang.String getURL(java.lang.String providerkey,
                                      java.lang.String instancekey,
                                      java.lang.String... convs)