Package org.glassfish.kernel.embedded
Class PortImpl
- java.lang.Object
-
- org.glassfish.kernel.embedded.PortImpl
-
-
Field Summary
-
Fields inherited from interface org.glassfish.internal.embedded.Port
HTTP_PROTOCOL, HTTPS_PROTOCOL, IIOP_PROTOCOL
-
-
Constructor Summary
Constructors Constructor Description PortImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Unbinds (close) this port instance, releasing network resources at portNumberint
getPortNumber()
Returns the port number occupied by this instance.void
setPortNumber(int portNumber)
-
-
-
Method Detail
-
setPortNumber
public void setPortNumber(int portNumber)
-
close
public void close()
Description copied from interface:Port
Unbinds (close) this port instance, releasing network resources at portNumber
-
getPortNumber
public int getPortNumber()
Description copied from interface:Port
Returns the port number occupied by this instance.- Specified by:
getPortNumber
in interfacePort
- Returns:
- port number
-
-