|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.anidb.udp.UdpRequest
public class UdpRequest
A request to the server.
Method Summary | |
---|---|
void |
addParameter(java.lang.String name,
boolean value)
Adds a parameter to the request. |
void |
addParameter(java.lang.String name,
long value)
Adds a parameter to the request. |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a parameter to the request. |
java.net.DatagramPacket |
createPacket(java.nio.charset.Charset charset)
Creates a datagram packet. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void addParameter(java.lang.String name, java.lang.String value)
name
- The name of the parameter.value
- The value of the parameter.
java.lang.IllegalArgumentException
- If the name is null
.
java.lang.IllegalArgumentException
- If the value is null
.public void addParameter(java.lang.String name, boolean value)
name
- The name of the parameter.value
- The value of the parameter.
java.lang.IllegalArgumentException
- If the name is null
.public void addParameter(java.lang.String name, long value)
name
- The name of the parameter.value
- The value of the parameter.
java.lang.IllegalArgumentException
- If the name is null
.public java.net.DatagramPacket createPacket(java.nio.charset.Charset charset) throws java.io.UnsupportedEncodingException
charset
- The charset.
java.io.UnsupportedEncodingException
- If the given charset isn't
supported.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |