org.apache.jetspeed.container.url.impl
Class BasePortalURLImpl

java.lang.Object
  extended by org.apache.jetspeed.container.url.impl.BasePortalURLImpl
All Implemented Interfaces:
org.apache.jetspeed.container.url.BasePortalURL

public class BasePortalURLImpl
extends Object
implements org.apache.jetspeed.container.url.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

Field Summary
private  boolean secure
           
private  String serverName
           
private  int serverPort
           
private  String serverScheme
           
 
Constructor Summary
BasePortalURLImpl()
           
BasePortalURLImpl(org.apache.commons.configuration.Configuration config)
           
BasePortalURLImpl(String environmentPath)
          This constructor takes a string that represents the name of an environment variable.
BasePortalURLImpl(String serverScheme, String serverName, int serverPort, boolean secure)
           
 
Method Summary
 String getServerName()
           
 int getServerPort()
           
 String getServerScheme()
           
 boolean isSecure()
           
 void setSecure(boolean secure)
           
 void setServerName(String serverName)
           
 void setServerPort(int serverPort)
           
 void setServerScheme(String serverScheme)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverName

private String serverName

serverScheme

private String serverScheme

serverPort

private int serverPort

secure

private boolean secure
Constructor Detail

BasePortalURLImpl

public BasePortalURLImpl()

BasePortalURLImpl

public BasePortalURLImpl(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(String serverScheme,
                         String serverName,
                         int serverPort,
                         boolean secure)
Method Detail

isSecure

public boolean isSecure()
Specified by:
isSecure in interface org.apache.jetspeed.container.url.BasePortalURL

setSecure

public void setSecure(boolean secure)
Specified by:
setSecure in interface org.apache.jetspeed.container.url.BasePortalURL

getServerName

public String getServerName()
Specified by:
getServerName in interface org.apache.jetspeed.container.url.BasePortalURL

setServerName

public void setServerName(String serverName)
Specified by:
setServerName in interface org.apache.jetspeed.container.url.BasePortalURL

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface org.apache.jetspeed.container.url.BasePortalURL

setServerPort

public void setServerPort(int serverPort)
Specified by:
setServerPort in interface org.apache.jetspeed.container.url.BasePortalURL

getServerScheme

public String getServerScheme()
Specified by:
getServerScheme in interface org.apache.jetspeed.container.url.BasePortalURL

setServerScheme

public void setServerScheme(String serverScheme)
Specified by:
setServerScheme in interface org.apache.jetspeed.container.url.BasePortalURL


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.