Package org.opends.dsml.protocol
Class ResultCodeFactory
- java.lang.Object
-
- org.opends.dsml.protocol.ResultCodeFactory
-
public class ResultCodeFactory extends Object
A utility class to help creating ResultCode objects containing a code value (integer) and a descr value (String).
-
-
Constructor Summary
Constructors Constructor Description ResultCodeFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultCodecreate(ObjectFactory objFactory, int resultCode)Create a ResultCode object that contains the resultCode, and, if valid, a text description (from RFC 2251) of the resultCode.
-
-
-
Method Detail
-
create
public static ResultCode create(ObjectFactory objFactory, int resultCode)
Create a ResultCode object that contains the resultCode, and, if valid, a text description (from RFC 2251) of the resultCode.- Parameters:
objFactory- The JAXB factory used to create the underlying object.resultCode- The LDAP result code.- Returns:
- A ResultCode object with a code and possibly a description.
-
-