Examples of SDKException


Examples of com.cumulocity.sdk.client.SDKException

        super.customize(exchange);
        exchange.addRequestHeader(RestConnector.X_CUMULOCITY_APPLICATION_KEY, paramters.getApplicationKey());
        try {
            authentication.setCredentials(exchange);
        } catch (IOException e) {
            throw new SDKException("authentication failed", e);
        }
    }
View Full Code Here

Examples of com.cumulocity.sdk.client.SDKException

                if(!isSubscriptionToChannel(message)) return;
                if (isSuccessfulySubscribed(message)) {
                    session.getChannel(ClientSessionChannel.META_UNSUBSCRIBE).addListener(new UnsubscribeListener(subscription));
                    subscriptions.add(subscription);
                } else {
                    subscription.getListener().onError(listener.getSubscription(), new SDKException("unable to subscribe on Channel " + channel.getChannelId()
                            + " " + message.get(Message.ERROR_FIELD)));
                }
            } finally {
                metaSubscribeChannel.removeListener(this);
            }
View Full Code Here

Examples of com.cumulocity.sdk.client.SDKException

            final HttpClient httpClient = new HttpClient();
            configureProxy(httpClient);
            configureAuthentication(httpClient);
            return httpClient;
        } catch (Exception ex) {
            throw new SDKException("unable to create httpclient ", ex);
        }
    }
View Full Code Here

Examples of com.cumulocity.sdk.client.SDKException

    private void configureProxyAuthentication(HttpClient httpClient) throws SDKException {
        if (hasText(paramters.getProxyUserId()) && hasText(paramters.getProxyPassword())) {
            try {
                httpClient.setProxyAuthentication(new ProxyAuthorization(paramters.getProxyUserId(), paramters.getProxyPassword()));
            } catch (IOException e) {
                throw new SDKException("httpclient proxy configuration failed ", e);
            }
        }
    }
View Full Code Here

Examples of com.ebay.sdk.SdkException

                storeType.setCustomHeader((String)context.get("storeCustomHeader"));
                storeType.setCustomHeaderLayout(StoreCustomHeaderLayoutCodeType.valueOf((String)context.get("storeCustomHeaderLayout")));

                if ( storeType == null )
                      throw new SdkException("StoreType property is not set.");

                req.setStore(storeType);
                resp = (SetStoreResponseType) call.execute(req);

                if (resp != null && "SUCCESS".equals(resp.getAck().toString())) {
View Full Code Here

Examples of com.ebay.sdk.SdkException

                storeType.setCustomHeader((String)context.get("storeCustomHeader"));
                storeType.setCustomHeaderLayout(StoreCustomHeaderLayoutCodeType.valueOf((String)context.get("storeCustomHeaderLayout")));

                if ( storeType == null )
                      throw new SdkException("StoreType property is not set.");

                req.setStore(storeType);
                resp = (SetStoreResponseType) call.execute(req);

                if (resp != null && "SUCCESS".equals(resp.getAck().toString())) {
View Full Code Here

Examples of com.ebay.sdk.SdkException

                storeType.setCustomHeaderLayout(StoreCustomHeaderLayoutCodeType.valueOf((String)context.get("storeCustomHeaderLayout")));

                StoreCustomListingHeaderType storeCustomListingHeader = new StoreCustomListingHeaderType();

                if ( storeType == null )
                      throw new SdkException("StoreType property is not set.");

                req.setStore(storeType);
                resp = (SetStoreResponseType) call.execute(req);

                if (resp != null && "SUCCESS".equals(resp.getAck().toString())) {
View Full Code Here

Examples of com.ebay.sdk.SdkException

                storeType.setCustomHeaderLayout(StoreCustomHeaderLayoutCodeType.valueOf((String)context.get("storeCustomHeaderLayout")));

                StoreCustomListingHeaderType storeCustomListingHeader = new StoreCustomListingHeaderType();

                if ( storeType == null )
                      throw new SdkException("StoreType property is not set.");

                req.setStore(storeType);
                resp = (SetStoreResponseType) call.execute(req);

                if (resp != null && "SUCCESS".equals(resp.getAck().toString())) {
View Full Code Here

Examples of com.ebay.sdk.SdkException

      }
      if(foundVersion) {
        try {
          xslText = loadXslFile();
        } catch(IOException ioe) {
          throw new SdkException("Error processing file: " + XSL_FILE_NAME + " : " + ioe.getMessage());
        }
      } else {
        xslText = downloadXsl();
        saveXslTextInFile(xslText);
      }
View Full Code Here

Examples of com.ebay.sdk.SdkException

    XmlUtil.appendChildNode(doc, valNode, "Day", day);
  }

  private void checkSingleValueListItem(Attribute attr) throws SdkException {
    if( attr.getValue().length != 1 ) {
            throw new SdkException("Invalid IAttribute object. One one value in ValueList is expected.");
    }
  }
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.