org.apache.tapestry.engine
Class EngineUtils

java.lang.Object
  extended by org.apache.tapestry.engine.EngineUtils

public final class EngineUtils
extends Object

Utilities needed by engine services and etc.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
static boolean needAbsoluteURL(String scheme, String server, int port, WebRequest request)
          Invoked by to see if an absolute URL is needed (because a specific scheme, server or port was indicated that does not match the incoming request).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

needAbsoluteURL

public static boolean needAbsoluteURL(String scheme,
                                      String server,
                                      int port,
                                      WebRequest request)
Invoked by to see if an absolute URL is needed (because a specific scheme, server or port was indicated that does not match the incoming request).

Parameters:
scheme - the desired URL scheme, or null
server - the desired URL server name, or null
port - the desired URL port, or 0
request - the request to check against
Returns:
true if absolute URL is needed, false otherwise


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.