org.apache.tapestry.engine
Class EngineUtils

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

public class EngineUtils
extends java.lang.Object

Utilities needed by engine services and etc.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
EngineUtils()
           
 
Method Summary
static boolean needAbsoluteURL(java.lang.String scheme, java.lang.String server, int port, WebRequest request)
          Invoked by #getURL(String, String, int, String, boolean) 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
 

Constructor Detail

EngineUtils

public EngineUtils()
Method Detail

needAbsoluteURL

public static boolean needAbsoluteURL(java.lang.String scheme,
                                      java.lang.String server,
                                      int port,
                                      WebRequest request)
Invoked by #getURL(String, String, int, String, boolean) 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