Package com.verisign.epp.interfaces
Class EPPUnhandledNamespacesLoginAdapter
- java.lang.Object
-
- com.verisign.epp.interfaces.EPPUnhandledNamespacesLoginAdapter
-
- All Implemented Interfaces:
EPPLoginAdapter
public class EPPUnhandledNamespacesLoginAdapter extends java.lang.Object implements EPPLoginAdapter
Interface that can be implemented and configured to be called byEPPSession
to customize theEPPLoginCmd
prior to sending it. Both the server'sEPPGreeting
and the originalEPPLoginCmd
is provided. The adapter can modify theEPPLoginCmd
that will then be sent. This adapter is used to customize the login services that is passed by the client to trigger application of the unhandled namespaces defined in draft-ietf-regext-unhandled-namespaces.
-
-
Constructor Summary
Constructors Constructor Description EPPUnhandledNamespacesLoginAdapter()
Default constructor.EPPUnhandledNamespacesLoginAdapter(java.lang.String aFilterNamespace)
EPPUnhandledNamespacesLoginAdapter
constructor that takes a single Namespace URI to filter from the login services.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adaptLogin(EPPLoginCmd aLoginCmd, EPPGreeting aGreeting)
Adapt theEPPLoginCmd
aLoginCmd
parameter based on the current state of theEPPLoginCmd
and the contents of theEPPGreeting
aGreeting
parameter sent by the server.void
addFilterNamespace(java.lang.String aNamespace)
Add a Namespace URI to the list of Namespace URIs to filter from the login services.void
setFilterNamespaces(java.util.List<java.lang.String> aFilterNamespaces)
Sets the Namespace URIs to filter from the login services.
-
-
-
Constructor Detail
-
EPPUnhandledNamespacesLoginAdapter
public EPPUnhandledNamespacesLoginAdapter()
Default constructor. Filters are set withsetFilterNamespaces(List)
andaddFilterNamespace(String)
.
-
EPPUnhandledNamespacesLoginAdapter
public EPPUnhandledNamespacesLoginAdapter(java.lang.String aFilterNamespace)
EPPUnhandledNamespacesLoginAdapter
constructor that takes a single Namespace URI to filter from the login services.- Parameters:
aFilterNamespace
- Namespace URI to filter from the login services.
-
-
Method Detail
-
setFilterNamespaces
public void setFilterNamespaces(java.util.List<java.lang.String> aFilterNamespaces)
Sets the Namespace URIs to filter from the login services.- Parameters:
aFilterNamespaces
- Namespace URIs to filter from the login services.
-
addFilterNamespace
public void addFilterNamespace(java.lang.String aNamespace)
Add a Namespace URI to the list of Namespace URIs to filter from the login services.- Parameters:
aNamespace
- Namespace URI to add to the Namespace URIs list
-
adaptLogin
public void adaptLogin(EPPLoginCmd aLoginCmd, EPPGreeting aGreeting) throws EPPCommandException
Adapt theEPPLoginCmd
aLoginCmd
parameter based on the current state of theEPPLoginCmd
and the contents of theEPPGreeting
aGreeting
parameter sent by the server. This method will filter the Namespace URIs from the login services set in theaLoginCmd
parameter.- Specified by:
adaptLogin
in interfaceEPPLoginAdapter
- Parameters:
aLoginCmd
- OriginalEPPLoginCmd
created byEPPSession
that will have the login services filtered by the Namespace URI list.aGreeting
-EPPGreeting
returned by the server that can be used to drive the adapting of theEPPLoginCmd
.- Throws:
EPPCommandException
- Error found with adapting the login
-
-