Package org.apache.commons.httpclient.methods

Examples of org.apache.commons.httpclient.methods.PostMethod.addParameters()


      throw new RemoteException("APIException while processing AddressVerify API call", new APIException("AddressVerify API call is not supported."));
    }

    public BAUpdateResponseType billAgreementUpdate(BillAgreementUpdateReq billAgreementUpdateRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiUrl().toExternalForm());
      post.addParameters(billAgreementUpdateRequest.getBAUpdateRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new BAUpdateResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here


      }
    }

    public BillUserResponseType billUser(BillUserReq billUserRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiUrl().toExternalForm());
      post.addParameters(billUserRequest.getBillUserRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new BillUserResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

    }

    public GetTransactionDetailsResponseType getTransactionDetails(GetTransactionDetailsReq getTransactionDetailsRequest) throws RemoteException {
     
      PostMethod post = new PostMethod(getApiUrl().toExternalForm());
      post.addParameters(getTransactionDetailsRequest.getGetTransactionDetailsRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new GetTransactionDetailsResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

      }
    }

    public MassPayResponseType massPay(MassPayReq massPayRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiUrl().toExternalForm());
      post.addParameters(massPayRequest.getMassPayRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new MassPayResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

      }
    }

    public RefundTransactionResponseType refundTransaction(RefundTransactionReq refundTransactionRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiUrl().toExternalForm());
      post.addParameters(refundTransactionRequest.getRefundTransactionRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new RefundTransactionResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

      }
    }

    public TransactionSearchResponseType transactionSearch(TransactionSearchReq transactionSearchRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiUrl().toExternalForm());
      post.addParameters(transactionSearchRequest.getTransactionSearchRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new TransactionSearchResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

      super(credentials);
    }

    public DoAuthorizationResponseType doAuthorization(DoAuthorizationReq doAuthorizationRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiAAUrl().toExternalForm());
      post.addParameters(doAuthorizationRequest.getDoAuthorizationRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new DoAuthorizationResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

      }
    }

    public DoCaptureResponseType doCapture(DoCaptureReq doCaptureRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiAAUrl().toExternalForm());
      post.addParameters(doCaptureRequest.getDoCaptureRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new DoCaptureResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

      }
    }

    public DoDirectPaymentResponseType doDirectPayment(DoDirectPaymentReq doDirectPaymentRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiAAUrl().toExternalForm());
      post.addParameters(doDirectPaymentRequest.getDoDirectPaymentRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new DoDirectPaymentResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

      }
    }

    public DoExpressCheckoutPaymentResponseType doExpressCheckoutPayment(DoExpressCheckoutPaymentReq doExpressCheckoutPaymentRequest) throws RemoteException {
      PostMethod post = new PostMethod(getApiAAUrl().toExternalForm());
      post.addParameters(doExpressCheckoutPaymentRequest.getDoExpressCheckoutPaymentRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new DoExpressCheckoutPaymentResponseType(post.getResponseBodyAsStream());
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.