|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.enderak.procol.common.net.PacketFactory
Generates packets to send
Field Summary | |
static int |
MAX_PRIORITY
The maximum priority |
static int |
MIN_PRIORITY
The minimum priority |
static int |
NORMAL_PRIORITY
The normal priority |
Constructor Summary | |
PacketFactory()
Constructor for the PacketFactory object |
Method Summary | |
void |
addToQueue(int requestIn,
byte[] dataIn,
int priority)
Adds a message to the queue, using a byte array for the data section |
void |
addToQueue(int requestIn,
java.io.File fileIn,
int priority)
Adds a message to the queue, using an File for the data section |
void |
addToQueue(int requestIn,
int priority)
Adds a message to the queue with no data section |
void |
addToQueue(int requestIn,
int dataIn,
int priority)
Adds a message to the queue, using an int for the data section |
void |
addToQueue(int requestIn,
java.lang.String filePath,
java.io.File fileIn,
int priority)
Adds a message to the queue, using an File and the File's path string for the data section |
void |
addToQueue(int requestIn,
java.lang.String dataIn,
int priority)
Adds a message to the queue, using a String for the data section |
void |
addToQueue(int requestIn,
java.net.URI fileURIIn,
java.io.File fileIn,
int priority)
Adds a message to the queue, using an File and the File's URI for the data section |
void |
addToQueue(int requestIn,
java.net.URI uriIn,
int priority)
Adds a message to the queue, using a URI for the data section |
ProColPacket |
getNext()
Gets the next Packet from the queue |
boolean |
hasNext()
Determines if there is another packet waiting |
void |
resetMessageNum()
Resets the message number to zero |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_PRIORITY
public static final int MIN_PRIORITY
public static final int NORMAL_PRIORITY
Constructor Detail |
public PacketFactory()
Method Detail |
public void addToQueue(int requestIn, int priority)
requestIn
- The request codepriority
- The prioritypublic void addToQueue(int requestIn, java.lang.String dataIn, int priority)
dataIn
- The datarequestIn
- The request codepriority
- The prioritypublic void addToQueue(int requestIn, java.net.URI uriIn, int priority)
requestIn
- The request codeuriIn
- the URIpriority
- The prioritypublic void addToQueue(int requestIn, byte[] dataIn, int priority)
dataIn
- The datarequestIn
- The request codepriority
- The prioritypublic void addToQueue(int requestIn, int dataIn, int priority)
dataIn
- The datarequestIn
- The request codepriority
- The prioritypublic void addToQueue(int requestIn, java.io.File fileIn, int priority)
requestIn
- The request codefileIn
- The filepriority
- The prioritypublic void addToQueue(int requestIn, java.net.URI fileURIIn, java.io.File fileIn, int priority)
requestIn
- The request codefileIn
- The filefileURIIn
- The file URIpriority
- The prioritypublic void addToQueue(int requestIn, java.lang.String filePath, java.io.File fileIn, int priority)
requestIn
- The request codefileIn
- The filefilePath
- The file pathpriority
- The prioritypublic ProColPacket getNext()
public boolean hasNext()
public void resetMessageNum()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |