public class SubstringFilter extends Filter
parent, parentTlvId| Constructor and Description |
|---|
SubstringFilter()
The constructor.
|
SubstringFilter(int tlvId)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnySubstrings(String any)
Add a internal substring
|
int |
computeLength()
Compute the SubstringFilter length
SubstringFilter :
0xA4 L1
|
+--> 0x04 L2 type
+--> 0x30 L3
|
[+--> 0x80 L4 initial]
[+--> 0x81 L5-1 any]
[+--> 0x81 L5-2 any]
[+--> ...
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the Substrings Filter to a PDU.
|
List<String> |
getAnySubstrings()
Get the internal substrings
|
String |
getFinalSubstrings()
Get the final substring
|
String |
getInitialSubstrings()
Get the initial substring
|
int |
getSubstringsLength() |
String |
getType()
Get the attribute
|
void |
setFinalSubstrings(String finalSubstrings)
Set the final substring
|
void |
setInitialSubstrings(String initialSubstrings)
Set the initial substring
|
void |
setSubstringsLength(int substringsLength) |
void |
setType(String type)
Set the attribute to match
|
String |
toString()
Return a string compliant with RFC 2254 representing a Substring filter
|
getParent, getParentTlvId, getTlvId, setParentpublic SubstringFilter(int tlvId)
public SubstringFilter()
public List<String> getAnySubstrings()
public void addAnySubstrings(String any)
any - The anySubstrings to set.public String getFinalSubstrings()
public void setFinalSubstrings(String finalSubstrings)
finalSubstrings - The finalSubstrings to set.public String getInitialSubstrings()
public void setInitialSubstrings(String initialSubstrings)
initialSubstrings - The initialSubstrings to set.public String getType()
public void setType(String type)
type - The type to set.public int getSubstringsLength()
public void setSubstringsLength(int substringsLength)
substringsLength - The substringsLength to set.public int computeLength()
computeLength in class Filterpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in class Filterbuffer - The buffer where to put the PDUEncoderExceptionCopyright © 2021. All rights reserved.