Package com.verisign.epp.codec.gen
Class EPPDcp
java.lang.Object
com.verisign.epp.codec.gen.EPPDcp
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
An Optional <dcp> (data collection policy) element that contains child
elements used to describe the server's policy for data collection and
management.Polcy elements should be disclosed to all entities directly and
indirectly involved in subsequent server interactions, Child elements include
the following
- An access <access> element that describes the access provided by the server
- One or more statement <statement> elements that describe the data
collection purpouses supported by the server. Use methods
getAccessandsetAccessto get and set the Access element(s), Use methodsgetStatementandsetStatementto get and set the Statement elements(s).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortConstant used with the Access attribute that means access is given to all identified data.static final shortConstant used with the Access attribute that means No access is provided to identified data.static final shortConstant used with the Access attribute that means data is not persistent, so no access is possible.static final shortConstant used with the Access attribute that means access is given to other identified data of a non- personal nature.static final shortConstant used with the Access attribute that means access is given to identified data relating to individuals and organizational entities.static final shortConstant used with the Access attribute that means access is given to identified data relating to individuals, organizational entities, and other data of a non-personal nature.static final shortConstant used with the Expiry attribute that means the policy is valid from the current date and time until it expires on the specified date and time.static final shortNo expiry specified.static final shortConstant used with the Expiry attribute that means the policy is valid from the current date and time until the end of the specified duration. -
Constructor Summary
ConstructorsConstructorDescriptionEPPDcp()Default constructor.EPPDcp(short aAccess, Vector<EPPStatement> aStatements) Allocates a newEPPDcpand sets all of the required attributes to the arguments values.EPPDcp(short aAccess, Vector<EPPStatement> aStatements, Duration aExpiryRelative) Allocates a newEPPDcpand sets all of the required attributes and a relative expiry duration.EPPDcp(short aAccess, Vector<EPPStatement> aStatements, Date aExpiryAbsolute) Allocates a newEPPDcpand sets all of the required attributes and an absolute expiry. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatement(EPPStatement aStatement) Adds a supported/desired Statement object.clone()CloneEPPDcp.voiddecodeEPPDcpfrom a DOM element tree.encodeEPPDcpinto a DOM element tree.booleanimplements a deepEPPDcpcompare.shortGets the expiry absolute date.shortGets the expiry type by returning one of theEXPIRY_constants.Gets the expiry relative duration.Returns the XML namespace associated with theEPPCodecComponent.voidsetAccess(short aAccess) Sets the Access service associated with the DataCollectionPolciy ObjecatvoidsetExpiryAbsolute(Date aExpiryDate) Sets the expiry to an absolute date.voidsetExpiryRelative(Duration aDuration) Sets the expiry to an relative duration.voidsetStatements(Vector<EPPStatement> aStatements) Sets the list of supported/desired Statement objects.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
EXPIRY_NONE
public static final short EXPIRY_NONENo expiry specified. This is the default value.- See Also:
-
EXPIRY_ABSOLUTE
public static final short EXPIRY_ABSOLUTEConstant used with the Expiry attribute that means the policy is valid from the current date and time until it expires on the specified date and time.- See Also:
-
EXPIRY_RELATIVE
public static final short EXPIRY_RELATIVEConstant used with the Expiry attribute that means the policy is valid from the current date and time until the end of the specified duration.- See Also:
-
ACCESS_ALL
public static final short ACCESS_ALLConstant used with the Access attribute that means access is given to all identified data.- See Also:
-
ACCESS_NONE
public static final short ACCESS_NONEConstant used with the Access attribute that means No access is provided to identified data.- See Also:
-
ACCESS_NULL
public static final short ACCESS_NULLConstant used with the Access attribute that means data is not persistent, so no access is possible.- See Also:
-
ACCESS_PERSONAL
public static final short ACCESS_PERSONALConstant used with the Access attribute that means access is given to identified data relating to individuals and organizational entities.- See Also:
-
ACCESS_PERSONAL_AND_OTHER
public static final short ACCESS_PERSONAL_AND_OTHERConstant used with the Access attribute that means access is given to identified data relating to individuals, organizational entities, and other data of a non-personal nature.- See Also:
-
ACCESS_OTHER
public static final short ACCESS_OTHERConstant used with the Access attribute that means access is given to other identified data of a non- personal nature.- See Also:
-
-
Constructor Details
-
EPPDcp
public EPPDcp()Default constructor. -
EPPDcp
Allocates a newEPPDcpand sets all of the required attributes to the arguments values. The expiry is set toEXPIRY_NONE.- Parameters:
aAccess- Using one of theACCESS_constantsaStatements- vector ofEPPStatementinstances
-
EPPDcp
Allocates a newEPPDcpand sets all of the required attributes and an absolute expiry.- Parameters:
aAccess- Using one of theACCESS_constantsaStatements- vector ofEPPStatementinstancesaExpiryAbsolute- Absolute expiry date
-
EPPDcp
Allocates a newEPPDcpand sets all of the required attributes and a relative expiry duration.- Parameters:
aAccess- Using one of theACCESS_constantsaStatements- vector ofEPPStatementinstancesaExpiryRelative- Relative expiry duration
-
-
Method Details
-
getStatements
-
setStatements
Sets the list of supported/desired Statement objects. An EPP Client will set the list of statement objects associated with the EPP Server.- Parameters:
aStatements- Vector ofEPPStatementinstances.
-
addStatement
Adds a supported/desired Statement object. An EPP Client will set the list of statement objects associated with the EPP Server.- Parameters:
aStatement- Statements to add
-
getAccess
public short getAccess() -
setAccess
public void setAccess(short aAccess) Sets the Access service associated with the DataCollectionPolciy Objecat- Parameters:
aAccess- Describes access provided by the server
-
getExpiryAbsolute
Gets the expiry absolute date.- Returns:
- Absolute expiry date if defined;
nullotherwise.
-
setExpiryAbsolute
Sets the expiry to an absolute date. This is will set the expiry relative attribute tonullsince they are mutually exclusive.- Parameters:
aExpiryDate- Date when DCP expires
-
getExpiryyRelative
Gets the expiry relative duration.- Returns:
- Relative expiry duration if defined;
nullotherwise.
-
setExpiryRelative
Sets the expiry to an relative duration. This is will set the expiry absolute attribute tonullsince they are mutually exclusive.- Parameters:
aDuration- Duration that the DCP is valid
-
getExpiryType
public short getExpiryType()Gets the expiry type by returning one of theEXPIRY_constants. Use the appropriategetExpirymethod based on the type.- Returns:
EXPIRY_constant value.
-
encode
encodeEPPDcpinto a DOM element tree. The "dcp" element is created and theaccess,statementnodes are appended as children.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOCUMENT ME!- Returns:
- dcp root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPDcpfrom a DOM element tree. TheaElementargument needs to be the <dcp> element- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- root element tree.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPDcpcompare. -
clone
CloneEPPDcp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPDcp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-