public class InformationJsonPacket extends JsonPacket
Modifier and Type | Field and Description |
---|---|
protected String |
filename |
protected long |
id |
protected boolean |
isIdRequest |
protected boolean |
isTo |
protected byte |
request |
protected String |
rulename |
Constructor and Description |
---|
InformationJsonPacket()
Empty constructor
|
InformationJsonPacket(byte request,
String rulename,
String filename)
Constructor for File information
|
InformationJsonPacket(long id,
boolean isTo,
String remoteHost)
Constructor for Transfer Request Information
|
Modifier and Type | Method and Description |
---|---|
String |
getFilename() |
long |
getId() |
byte |
getRequest() |
String |
getRulename() |
boolean |
isIdRequest() |
boolean |
isTo() |
void |
setFilename(String filename) |
void |
setId(long id) |
void |
setIdRequest(boolean isIdRequest) |
void |
setRequest(byte request) |
void |
setRequestUserPacket()
Default value to set
|
void |
setRulename(String rulename) |
void |
setTo(boolean isTo) |
createFromBuffer, createObjectNode, fromJson, getComment, getRequestUserPacket, setComment, setRequestUserPacket, toString
protected boolean isIdRequest
protected long id
protected boolean isTo
protected byte request
protected String rulename
protected String filename
public InformationJsonPacket()
public InformationJsonPacket(long id, boolean isTo, String remoteHost)
id
- isTo
- remoteHost
- public boolean isIdRequest()
public void setIdRequest(boolean isIdRequest)
isIdRequest
- the isIdRequest to True for Transfer Request,
else
for File listingpublic long getId()
public void setId(long id)
id
- the id to setpublic boolean isTo()
public void setTo(boolean isTo)
isTo
- the isTo to setpublic byte getRequest()
public void setRequest(byte request)
request
- the request to setpublic String getRulename()
public void setRulename(String rulename)
rulename
- the rulename to set (if Transfer and Json
requester/requested (isTo true/false))public String getFilename()
public void setFilename(String filename)
filename
- the filename to setpublic void setRequestUserPacket()
JsonPacket
setRequestUserPacket
in class JsonPacket
Copyright © 2009–2020 Waarp. All rights reserved.