sk.baka.webvm.wicket
Class WicketUtils

java.lang.Object
  extended by sk.baka.webvm.wicket.WicketUtils

public final class WicketUtils
extends Object

Contains Wicket utilities.

Author:
Martin Vysny

Method Summary
static boolean redirectTo(ResourceLink resLink)
          Redirects to (and starts download process of) given resource.
static IResourceStream toStream(ResourceLink link)
          Converts a resource link to a resource stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

redirectTo

public static boolean redirectTo(ResourceLink resLink)
Redirects to (and starts download process of) given resource.

Parameters:
resLink - the link to download, must not be null
Returns:
true if the redirect was succesfull, false if given link is not a downloadable content.

toStream

public static IResourceStream toStream(ResourceLink link)
Converts a resource link to a resource stream.

Parameters:
link - the link to convert. Must not be a package nor a root link.
Returns:
converted resource stream.


Copyright © 2010 Baka. All Rights Reserved.