org.apache.jetspeed.container.url.impl
Class BasePortalURLImpl
java.lang.Object
org.apache.jetspeed.container.url.impl.BasePortalURLImpl
- All Implemented Interfaces:
- BasePortalURL
public class BasePortalURLImpl
- extends java.lang.Object
- implements BasePortalURL
BasePortalURL defines the interface for manipulating Base URLs in a portal.
Base URLs contain the isSecure flag, server name, server port, and server scheme.
This abstraction was necessary for wiring the entire portal's base URL via another
mechanism than retrieving from the servlet request.
- Version:
- $Id: $
- Author:
- David Sean Taylor
Constructor Summary |
BasePortalURLImpl()
|
BasePortalURLImpl(org.apache.commons.configuration.Configuration config)
|
BasePortalURLImpl(java.lang.String environmentPath)
This constructor takes a string that represents the name of an
environment variable. |
BasePortalURLImpl(java.lang.String serverScheme,
java.lang.String serverName,
int serverPort,
boolean secure)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasePortalURLImpl
public BasePortalURLImpl()
BasePortalURLImpl
public BasePortalURLImpl(java.lang.String environmentPath)
throws org.apache.commons.configuration.ConfigurationException
- This constructor takes a string that represents the name of an
environment variable. The environment variable will be the full
path of a properties file to be loaded. Information from the
properties file will populate this object
- Throws:
org.apache.commons.configuration.ConfigurationException
BasePortalURLImpl
public BasePortalURLImpl(org.apache.commons.configuration.Configuration config)
BasePortalURLImpl
public BasePortalURLImpl(java.lang.String serverScheme,
java.lang.String serverName,
int serverPort,
boolean secure)
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interface BasePortalURL
setSecure
public void setSecure(boolean secure)
- Specified by:
setSecure
in interface BasePortalURL
getServerName
public java.lang.String getServerName()
- Specified by:
getServerName
in interface BasePortalURL
setServerName
public void setServerName(java.lang.String serverName)
- Specified by:
setServerName
in interface BasePortalURL
getServerPort
public int getServerPort()
- Specified by:
getServerPort
in interface BasePortalURL
setServerPort
public void setServerPort(int serverPort)
- Specified by:
setServerPort
in interface BasePortalURL
getServerScheme
public java.lang.String getServerScheme()
- Specified by:
getServerScheme
in interface BasePortalURL
setServerScheme
public void setServerScheme(java.lang.String serverScheme)
- Specified by:
setServerScheme
in interface BasePortalURL
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.