eXo JCR :: Applications :: Backup Console 1.16.6-GA

org.exoplatform.jcr.backupconsole
Class ClientTransportImpl

java.lang.Object
  extended by org.exoplatform.jcr.backupconsole.ClientTransportImpl
All Implemented Interfaces:
ClientTransport

public class ClientTransportImpl
extends Object
implements ClientTransport

Created by The eXo Platform SAS.
Date:

Version:
$Id: ClientTransportImpl.java 111 2008-11-11 11:11:11Z serg $
Author:
Karpenko Sergiy

Constructor Summary
ClientTransportImpl(FormAuthentication formAuthentication, String host, String protocol)
          Constructor.
ClientTransportImpl(String login, String password, String host, String protocol)
          Constructor.
 
Method Summary
 BackupAgentResponse executeGET(String sURL)
          Execute assigned sURL using current transport and return result as byte array.
 BackupAgentResponse executePOST(String sURL, String postData)
          Execute assigned sURL using current transport and return result as byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTransportImpl

public ClientTransportImpl(String login,
                           String password,
                           String host,
                           String protocol)
Constructor.

Parameters:
login - Login string.
password - Password string.
host - host string.

ClientTransportImpl

public ClientTransportImpl(FormAuthentication formAuthentication,
                           String host,
                           String protocol)
Constructor.

Parameters:
formAuthentication - form authentication parameters.
login - Login string.
password - Password string.
host - host string.
Method Detail

executePOST

public BackupAgentResponse executePOST(String sURL,
                                       String postData)
                                throws IOException,
                                       BackupExecuteException
Execute assigned sURL using current transport and return result as byte array.

Specified by:
executePOST in interface ClientTransport
Parameters:
sURL - String form of URL to execute.
postData - data for post request.
Returns:
BackupAgentResponce result.
Throws:
IOException - any transport exception.
BackupExecuteException - other internal exception.

executeGET

public BackupAgentResponse executeGET(String sURL)
                               throws IOException,
                                      BackupExecuteException
Execute assigned sURL using current transport and return result as byte array.

Specified by:
executeGET in interface ClientTransport
Parameters:
sURL - String form of URL to execute, GET method.
Returns:
BackupAgentResponce result.
Throws:
IOException - any transport exception.
BackupExecuteException - other internal exception.

eXo JCR :: Applications :: Backup Console 1.16.6-GA

Copyright © 2016 eXo Platform SAS. All Rights Reserved.