org.hippoecm.hst.configuration.hosting
Class PortMountService

java.lang.Object
  extended by org.hippoecm.hst.configuration.hosting.PortMountService
All Implemented Interfaces:
MutablePortMount, PortMount

public class PortMountService
extends Object
implements MutablePortMount


Constructor Summary
PortMountService(HstNode portMount, VirtualHost virtualHost, HstManagerImpl hstManager)
           
PortMountService(Mount rootMount, VirtualHost virtualHost)
           
 
Method Summary
 int getPortNumber()
           
 Mount getRootMount()
          A PortMount has to have at least a root Mount, otherwise it is not a valid PortNumber and cannot be used.
 void setRootMount(MutableMount mount)
          sets the mount as rootMount for this MutablePortMount
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortMountService

public PortMountService(HstNode portMount,
                        VirtualHost virtualHost,
                        HstManagerImpl hstManager)
                 throws ServiceException
Throws:
ServiceException

PortMountService

public PortMountService(Mount rootMount,
                        VirtualHost virtualHost)
                 throws ServiceException
Throws:
ServiceException
Method Detail

getPortNumber

public int getPortNumber()
Specified by:
getPortNumber in interface PortMount
Returns:
Returns the portnumber associated with this PortMount object.

getRootMount

public Mount getRootMount()
Description copied from interface: PortMount
A PortMount has to have at least a root Mount, otherwise it is not a valid PortNumber and cannot be used.

Specified by:
getRootMount in interface PortMount
Returns:
the root Mount for this PortNumber object. When this PortMount has an invalid configured Mount or no Mount, null will be returned

setRootMount

public void setRootMount(MutableMount mount)
Description copied from interface: MutablePortMount
sets the mount as rootMount for this MutablePortMount

Specified by:
setRootMount in interface MutablePortMount
Parameters:
mount - the mount to set as rootMount

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Hippo. All Rights Reserved.