com.khubla.pragmatach.plugin.responsive
Class ResponsiveImageController

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.impl.AbstractController
      extended by com.khubla.pragmatach.framework.controller.impl.stat.StaticResourceController
          extended by com.khubla.pragmatach.plugin.responsive.ResponsiveImageController
All Implemented Interfaces:
PragmatachController

@Controller(name="ResponsiveImageController")
public class ResponsiveImageController
extends StaticResourceController

Author:
tome

Constructor Summary
ResponsiveImageController()
          ctor
 
Method Summary
 Response getscaledimage(String imageResource, double xscale, double yscale)
          render
 Response getsizedimage(String imageResource, int width, int height)
          render
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.stat.StaticResourceController
getStaticResourceInputStream, render
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.AbstractController
bad, buildWildcardResourceURI, forward, getApplicationURL, getCacheHeaders, getConfigurationParameter, getControllerName, getControllerName, getPragmatachRoute, getRequest, getResource, getSessionScopedController, ok, redirect, setPragmatachRoute, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponsiveImageController

public ResponsiveImageController()
ctor

Method Detail

getscaledimage

@Route(uri="/pragmatach/plugin/getscaledimage/@img/@xscale/@yscale")
public Response getscaledimage(@RouteParameter(name="img")
                                        String imageResource,
                                        @RouteParameter(name="xscale")
                                        double xscale,
                                        @RouteParameter(name="yscale")
                                        double yscale)
                        throws PragmatachException
render

Throws:
PragmatachException

getsizedimage

@Route(uri="/pragmatach/plugin/getsizedimage/@img/@width/@height")
public Response getsizedimage(@RouteParameter(name="img")
                                       String imageResource,
                                       @RouteParameter(name="width")
                                       int width,
                                       @RouteParameter(name="height")
                                       int height)
                       throws PragmatachException
render

Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.