|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.wst.server.core.ServerPort
public class ServerPort
This class represents a port on a server.
| Constructor Summary | |
|---|---|
ServerPort(java.lang.String id,
java.lang.String name,
int port,
java.lang.String protocol)
Create a new server port. |
|
ServerPort(java.lang.String id,
java.lang.String name,
int port,
java.lang.String protocol,
java.lang.String[] contentTypes,
boolean advanced)
Create a new server port. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String[] |
getContentTypes()
Returns the content types that this port would normally serve, or null if the content is unknown. |
java.lang.String |
getId()
Return an optional internal id used to identify this port. |
java.lang.String |
getName()
Return the name of the port. |
int |
getPort()
Return the actual port number. |
java.lang.String |
getProtocol()
Returns the protocol, e.g. |
int |
hashCode()
|
boolean |
isAdvanced()
Returns true if this port is an "advanced" port and should not be shown to novice users. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerPort(java.lang.String id,
java.lang.String name,
int port,
java.lang.String protocol)
id - a server-specific port idname - a human-readable name for the portport - the number numberprotocol - the port's protocol
public ServerPort(java.lang.String id,
java.lang.String name,
int port,
java.lang.String protocol,
java.lang.String[] contentTypes,
boolean advanced)
id - a server-specific port idname - a human-readable name for the portport - the number numberprotocol - the port's protocolcontentTypes - the content types that the port supportsadvanced - true if the port is "advanced" and should only
be shown to advanced users, false otherwise| Method Detail |
|---|
public java.lang.String getId()
public java.lang.String getName()
public int getPort()
public java.lang.String getProtocol()
public java.lang.String[] getContentTypes()
public boolean isAdvanced()
true if the port is advanced, or false
otherwisepublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||