|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.message.GarlicConfig
public class GarlicConfig
Define the contents of a garlic chunk that contains 1 or more sub garlics
Constructor Summary | |
---|---|
GarlicConfig()
|
Method Summary | |
---|---|
void |
addClove(GarlicConfig config)
Add a clove to the current message - if any cloves are added, an I2NP message cannot be specified via setPayload. |
void |
clearCloves()
|
Certificate |
getCertificate()
|
GarlicConfig |
getClove(int index)
|
int |
getCloveCount()
|
DeliveryInstructions |
getDeliveryInstructions()
|
long |
getExpiration()
|
long |
getId()
|
RouterInfo |
getRecipient()
|
PublicKey |
getRecipientPublicKey()
|
Certificate |
getReplyBlockCertificate()
|
long |
getReplyBlockExpiration()
|
long |
getReplyBlockMessageId()
|
DeliveryInstructions |
getReplyInstructions()
|
RouterInfo |
getReplyThroughRouter()
|
boolean |
getRequestAck()
|
protected java.lang.String |
getSubData()
|
void |
setCertificate(Certificate cert)
Certificate for the getRecipient() to pay for their processing |
void |
setDeliveryInstructions(DeliveryInstructions instructions)
Specify how the I2NPMessage in the clove should be handled. |
void |
setExpiration(long expiration)
Expiration of the clove, after which it should be dropped |
void |
setId(long id)
Unique ID of the clove |
void |
setRecipient(RouterInfo info)
Router to receive and process this clove - the router that will open the delivery instructions and decide what to do process it locally as an I2NPMessage, forward it as an I2NPMessage to a router, forward it as an I2NPMessage to a Destination, or forward it as an I2NPMessage to a tunnel. |
void |
setRecipientPublicKey(PublicKey recipientPublicKey)
Public key of the router to receive and process this clove. |
void |
setReplyBlockCertificate(Certificate cert)
|
void |
setReplyBlockExpiration(long expiration)
|
void |
setReplyBlockMessageId(long id)
|
void |
setReplyInstructions(DeliveryInstructions instructions)
Specify how any reply will be routed so that it reaches this router after being delivered to the getReplyThroughRouter. |
void |
setReplyThroughRouter(RouterInfo replyThroughRouter)
Specify the router through which a reply to this clove can be sent. |
void |
setRequestAck(boolean request)
If true, the recipient of this clove is requested to send a DeliveryStatusMessage back via the replyThroughRouter using the getId() value for the status' message Id. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GarlicConfig()
Method Detail |
---|
public void setRecipient(RouterInfo info)
public RouterInfo getRecipient()
public void setRecipientPublicKey(PublicKey recipientPublicKey)
public PublicKey getRecipientPublicKey()
public void setCertificate(Certificate cert)
public Certificate getCertificate()
public void setId(long id)
public long getId()
public void setExpiration(long expiration)
public long getExpiration()
public void setDeliveryInstructions(DeliveryInstructions instructions)
public DeliveryInstructions getDeliveryInstructions()
public void setRequestAck(boolean request)
public boolean getRequestAck()
public void setReplyThroughRouter(RouterInfo replyThroughRouter)
public RouterInfo getReplyThroughRouter()
public void setReplyInstructions(DeliveryInstructions instructions)
public DeliveryInstructions getReplyInstructions()
public long getReplyBlockMessageId()
public void setReplyBlockMessageId(long id)
public Certificate getReplyBlockCertificate()
public void setReplyBlockCertificate(Certificate cert)
public long getReplyBlockExpiration()
public void setReplyBlockExpiration(long expiration)
public void addClove(GarlicConfig config)
public int getCloveCount()
public GarlicConfig getClove(int index)
public void clearCloves()
protected java.lang.String getSubData()
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 |