Package org.dcache.xrootd.security
Class StringBucket
- java.lang.Object
-
- org.dcache.xrootd.security.XrootdBucket
-
- org.dcache.xrootd.security.StringBucket
-
public class StringBucket extends XrootdBucket
A bucket containing a header plus a String.- Author:
- radicke, tzangerl
- See Also:
XrootdBucket
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.security.XrootdBucket
_type
-
-
Constructor Summary
Constructors Constructor Description StringBucket(XrootdSecurityProtocol.BucketType type, java.lang.String data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringBucketdeserialize(XrootdSecurityProtocol.BucketType type, io.netty.buffer.ByteBuf buffer)intdump(java.lang.StringBuilder builder, java.lang.String step, int number)This usually will be called only if trace is enabled.java.lang.StringgetContent()intgetSize()voidserialize(io.netty.buffer.ByteBuf out)java.lang.StringtoString()-
Methods inherited from class org.dcache.xrootd.security.XrootdBucket
getType
-
-
-
-
Constructor Detail
-
StringBucket
public StringBucket(XrootdSecurityProtocol.BucketType type, java.lang.String data)
-
-
Method Detail
-
dump
public int dump(java.lang.StringBuilder builder, java.lang.String step, int number)Description copied from class:XrootdBucketThis usually will be called only if trace is enabled. We here imitate the XrootD XrdSutBuffer DUMP printout.- Overrides:
dumpin classXrootdBucket
-
getContent
public java.lang.String getContent()
-
deserialize
public static StringBucket deserialize(XrootdSecurityProtocol.BucketType type, io.netty.buffer.ByteBuf buffer)
-
serialize
public void serialize(io.netty.buffer.ByteBuf out)
- Overrides:
serializein classXrootdBucket
-
getSize
public int getSize()
- Overrides:
getSizein classXrootdBucket- Returns:
- Length of the serialized bucket (in bytes)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classXrootdBucket
-
-