|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.PortUtil
public final class PortUtil
Class that validates the value of a TCP/UDP port.
Field Summary | |
---|---|
static int |
MAX_PORT
|
static int |
MIN_PORT
|
Method Summary | |
---|---|
static boolean |
isValidPort(int port)
Tells the caller of the passed int represents a valid TCP/UDP port. |
static boolean |
isValidPort(String port)
Tells the caller of the passed string represents a valid TCP/UDP port. |
static int |
parsePort(String port)
Return the TCP/UDP port contained in the passed port string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIN_PORT
public static final int MAX_PORT
Method Detail |
---|
public static int parsePort(String port)
port
- the string to get the port from.
public static boolean isValidPort(String port)
port
- the string to check.
public static boolean isValidPort(int port)
port
- the int to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |