WUI : API


org.westofj.wui
Class WExternalPage

java.lang.Object
  extended byorg.westofj.wui.WPage
      extended byorg.westofj.wui.WExternalPage

public final class WExternalPage
extends WPage

Sends a redirect to the clients browser to redirect the client to the target URL.

Version:
$Revision: 1.2 $, $Date: 2004/03/08 01:57:35 $
Author:
bill

Constructor Summary
WExternalPage()
          Constructs an empty external page.
WExternalPage(String url)
          Constructs an external page with the specified target url.
 
Method Summary
 String getUrl()
          Gets the target URL.
 void render(WRunner runner, PrintWriter out)
          Renders the page to the display.
 void setUrl(String url)
          Sets the target URL.
 
Methods inherited from class org.westofj.wui.WPage
getContext, getMargin, getMarginUnit, getRunner, getTitle, getWidget, setContext, setMargin, setMargin, setMarginUnit, setTitle, setTitle, setWidget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WExternalPage

public WExternalPage()
Constructs an empty external page.


WExternalPage

public WExternalPage(String url)
Constructs an external page with the specified target url.

Parameters:
url - the target url.
Method Detail

getUrl

public String getUrl()
Gets the target URL.

Returns:
String the target URL.

render

public final void render(WRunner runner,
                         PrintWriter out)
                  throws WRenderException
Description copied from class: WPage
Renders the page to the display.

Overrides:
render in class WPage
Parameters:
runner - the current runner context.
out - the output print writer.
Throws:
WRenderException

setUrl

public void setUrl(String url)
Sets the target URL.

Parameters:
url - the target URL.

Copyright (c) 2003 West of J - All rights reserved.