public final class ServerInfo extends Object
Constructor and Description |
---|
ServerInfo()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2005–2017. All rights reserved.