openr66.protocol.localhandler.packet
Class InformationPacket
java.lang.Object
openr66.protocol.localhandler.packet.AbstractLocalPacket
openr66.protocol.localhandler.packet.InformationPacket
public class InformationPacket
- extends AbstractLocalPacket
Information of files class
header = "rulename" middle = requestedInfo end = "FILENAME"
- Author:
- frederic bregier
InformationPacket
public InformationPacket(String rulename,
byte request,
String filename)
- Parameters:
rulename
- request
- filename
-
createFromBuffer
public static InformationPacket createFromBuffer(int headerLength,
int middleLength,
int endLength,
org.jboss.netty.buffer.ChannelBuffer buf)
throws OpenR66ProtocolPacketException
- Parameters:
headerLength
- middleLength
- endLength
- buf
-
- Returns:
- the new EndTransferPacket from buffer
- Throws:
OpenR66ProtocolPacketException
createEnd
public void createEnd()
- Description copied from class:
AbstractLocalPacket
- Prepare the End buffer
- Specified by:
createEnd
in class AbstractLocalPacket
createHeader
public void createHeader()
throws OpenR66ProtocolPacketException
- Description copied from class:
AbstractLocalPacket
- Prepare the Header buffer
- Specified by:
createHeader
in class AbstractLocalPacket
- Throws:
OpenR66ProtocolPacketException
createMiddle
public void createMiddle()
- Description copied from class:
AbstractLocalPacket
- Prepare the Middle buffer
- Specified by:
createMiddle
in class AbstractLocalPacket
getType
public byte getType()
- Specified by:
getType
in class AbstractLocalPacket
- Returns:
- the type of Packet
toString
public String toString()
- Specified by:
toString
in class AbstractLocalPacket
getRequest
public byte getRequest()
- Returns:
- the requestId
getRulename
public String getRulename()
- Returns:
- the rulename
getFilename
public String getFilename()
- Returns:
- the filename
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.