|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.ServerInfo
public final class ServerInfo
Server specific data related to a call.
Constructor Summary | |
---|---|
ServerInfo()
Constructor. |
Method Summary | |
---|---|
String |
getAddress()
Returns the IP address. |
String |
getAgent()
Returns the agent name (ex: "Restlet-Framework/2.0"). |
int |
getPort()
Returns the port number which received the call. |
boolean |
isAcceptingRanges()
Return true if the server accepts range requests for a resource, with the "byte" range unit. |
void |
setAcceptingRanges(boolean acceptingRanges)
Indicates if the server accepts range requests for a resource, with the "byte" range unit. |
void |
setAddress(String address)
Sets the IP address which received the call. |
void |
setAgent(String agent)
Sets the agent name (ex: "Restlet-Framework/2.0"). |
void |
setPort(int port)
Sets the port number which received the call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerInfo()
Method Detail |
---|
public String getAddress()
public String getAgent()
public int getPort()
public boolean isAcceptingRanges()
public void setAcceptingRanges(boolean acceptingRanges)
acceptingRanges
- True if the server accepts range requests for a resource.public void setAddress(String address)
address
- The IP address which received the call.public void setAgent(String agent)
agent
- The agent name.public void setPort(int port)
port
- The port number which received the call.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |