public class ESSLayers
extends java.lang.Object
resolve
of an ESS mailing list agent
:
MLA mla = ...; ... // the message to process: MimeMessage msg = ...; // resolve the message into its layers: ESSLayers layers = mla.resolve(msg);
ESSLayer
,
SignedESSLayer
,
EnvelopedESSLayer
,
MLA
Modifier and Type | Method and Description |
---|---|
ESSLayer[] |
getAllLayers()
Gets all layers currently held by this MLA.
|
int |
getIndexOfEnvelopedLayer()
Get the index of the (outermost) EnvelopedData layer, if present.
|
int |
getIndexOfInnerSignedLayer()
Get the index of the inner SignedData layer, if present.
|
int |
getIndexOfOuterSignedLayer()
Get the index of the outer SignedData layer, if present.
|
ESSLayer |
getInnermostLayer()
Gets the innermost layer.
|
ESSLayer |
getLayerAtIndex(int index)
Gets the layer at the requested index.
|
int |
getNumberOfLayers()
Get the number of layers included in this container.
|
ESSLayer |
getOutermostLayer()
Gets the outermost layer.
|
java.lang.String |
toString()
Returns a String representation of this MLA.
|
public int getNumberOfLayers()
public ESSLayer getOutermostLayer()
public ESSLayer getInnermostLayer()
public int getIndexOfOuterSignedLayer()
public int getIndexOfInnerSignedLayer()
public int getIndexOfEnvelopedLayer()
public ESSLayer getLayerAtIndex(int index)
java.lang.ArrayIndexOutOfBoundsException
- if the index is out of rangepublic ESSLayer[] getAllLayers()
public java.lang.String toString()
toString
in class java.lang.Object