org.hippoecm.hst.configuration.hosting
Class PortMountService
java.lang.Object
org.hippoecm.hst.configuration.hosting.PortMountService
- All Implemented Interfaces:
- MutablePortMount, PortMount
public class PortMountService
- extends Object
- implements MutablePortMount
PortMountService
public PortMountService(HstNode portMount,
VirtualHost virtualHost,
HstManagerImpl hstManager)
throws ServiceException
- Throws:
ServiceException
PortMountService
public PortMountService(Mount rootMount,
VirtualHost virtualHost)
throws ServiceException
- Throws:
ServiceException
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.