|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmythapi.protocol.request.AMythRequest
public class AMythRequest
The implementation of a MythTV-protocol request.
| Constructor Summary | |
|---|---|
AMythRequest(IMythCommand command)
|
|
AMythRequest(IMythCommand command,
List<String> requestArgs)
|
|
AMythRequest(IMythCommand command,
String... requestArgs)
|
|
| Method Summary | |
|---|---|
IMythCommand |
getCommand()
Gets the request-command. |
IMythPacket |
getPacket()
Converts the object into a packet that can be send over network. |
List<String> |
getRequestArguments()
Gets additional request-arguments. |
ProtocolVersion |
getVersionNr()
Gets the protocol-version of an object. |
static IMythRequest |
readFrom(IMythPacket packet)
|
static IMythRequest |
readFrom(ProtocolVersion protoVersion,
InputStream input)
|
static IMythRequest |
readFrom(ProtocolVersion protoVersion,
String input)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AMythRequest(IMythCommand command)
public AMythRequest(IMythCommand command,
String... requestArgs)
public AMythRequest(IMythCommand command,
List<String> requestArgs)
| Method Detail |
|---|
public IMythCommand getCommand()
IMythRequest
A command itself consists of a mandatory name and optional command arguments,
e.g.GET_FREE_RECORDER_COUNT or ANN Playback MythTvPlayer 0.
getCommand in interface IMythRequestpublic List<String> getRequestArguments()
IMythRequest
getRequestArguments in interface IMythRequest
public static final IMythRequest readFrom(ProtocolVersion protoVersion,
String input)
public static final IMythRequest readFrom(ProtocolVersion protoVersion,
InputStream input)
throws IOException
IOException
public static final IMythRequest readFrom(IMythPacket packet)
throws IllegalArgumentException
IllegalArgumentExceptionpublic IMythPacket getPacket()
ISendable
getPacket in interface ISendablepublic String toString()
toString in class Objectpublic ProtocolVersion getVersionNr()
IVersionable
getVersionNr in interface IVersionable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||