All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.active24.client.fred.eppclient.EppClient Maven / Gradle / Ivy

There is a newer version: 2.50
Show newest version
package cz.active24.client.fred.eppclient;

import cz.active24.client.fred.exception.FredClientException;
import ietf.params.xml.ns.epp_1.EppType;
import ietf.params.xml.ns.epp_1.LoginType;
import ietf.params.xml.ns.epp_1.ResponseType;

import javax.xml.bind.JAXBElement;

/**
 * Low level EPP client for FRED.
 */
public interface EppClient {

    /**
     * Method executes login command.
     *
     * @param newPw new password, use it for next login.
     * @param clientTransactionId client transaction id.
     * @return ResponseType
     * @throws FredClientException when call failed.
     */
    ResponseType login(String newPw, String clientTransactionId) throws FredClientException;

    /**
     * Method executes logout command and destroys socket connection.
     *
     * @param clientTransactionId client transaction id.
     * @throws FredClientException when call failed.
     * @return ResponseType
     */
    ResponseType logout(String clientTransactionId) throws FredClientException;

    /**
     * Executes command.
     *
     * @param request wrapped in JAXBElement.
     * @return ResponseType
     * @throws FredClientException when server responses with error code.
     */
    ResponseType execute(JAXBElement request) throws FredClientException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy