public final class ServerInfo
extends java.lang.Object
Constructor and Description |
---|
ServerInfo()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns the IP address.
|
java.lang.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(java.lang.String address)
Sets the IP address which received the call.
|
void |
setAgent(java.lang.String agent)
Sets the agent name (ex: "Restlet-Framework/2.0").
|
void |
setPort(int port)
Sets the port number which received the call.
|
public java.lang.String getAddress()
public java.lang.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(java.lang.String address)
address
- The IP address which received the call.public void setAgent(java.lang.String agent)
agent
- The agent name.public void setPort(int port)
port
- The port number which received the call.Copyright © 2005-2024 Restlet.