org.apache.tapestry.services
Interface AbsoluteURLBuilder

All Known Implementing Classes:
AbsoluteURLBuilderImpl

public interface AbsoluteURLBuilder

Service used to construct absolute URLs (often used for redirects).

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 String constructURL(String URI)
          Constructs a URL, defaulting scheme, server and port to the values for the current request.
 String constructURL(String URI, String scheme, String server, int port)
          Constructs a URL from the given URI (that is, service path), schema, server and port.
 

Method Detail

constructURL

String constructURL(String URI,
                    String scheme,
                    String server,
                    int port)
Constructs a URL from the given URI (that is, service path), schema, server and port.

Parameters:
URI - either a complete URL (that is, containing a colon), in which case it is returned unchanged, or the path within the server.
scheme - scheme to prefix URI with
server - to prefix the URI with (unless the URI begins with "//"
port - to suffix the server with (unless the URI begins with "//")

constructURL

String constructURL(String URI)
Constructs a URL, defaulting scheme, server and port to the values for the current request.



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