public class SubstringFilter extends Filter
parent
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
|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public 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 interface Asn1Object
computeLength
in class AbstractAsn1Object
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in class AbstractAsn1Object
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.