org.apache.lenya.cms.publication
Class Proxy

java.lang.Object
  extended by org.apache.lenya.cms.publication.Proxy

public class Proxy
extends java.lang.Object

An object of this class represents a proxy configuration.

Configuration example ($PUB_HOME/config/publication.xml):

 <proxies>
   <proxy area="live" ssl="true" url="https://www.host.com/ssl/default"/>
   <proxy area="live" ssl="false" url="http://www.host.com/default"/>
   <proxy area="authoring" ssl="true" url="https://www.host.com/lenya/default/authoring"/>
   <proxy area="authoring" ssl="false" url="http://www.host.com/lenya/default/authoring"/>
 <proxies;>
 

Version:
$Id: Proxy.java 535656 2007-05-06 21:08:27Z nettings $

Constructor Summary
Proxy()
           
 
Method Summary
 java.lang.String getUrl()
          Returns the proxy URL.
 java.lang.String getURL(Document document)
          Returns the absolute URL of a particular document.
 void setUrl(java.lang.String _url)
          Sets the proxy URL.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy()
Method Detail

getURL

public java.lang.String getURL(Document document)
Returns the absolute URL of a particular document.

Parameters:
document - The document.
Returns:
A string.

getUrl

public java.lang.String getUrl()
Returns the proxy URL.

Returns:
A string.

setUrl

public void setUrl(java.lang.String _url)
Sets the proxy URL.

Parameters:
_url - The url to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.