Package com.celexus.conniption.foreman.util

Examples of com.celexus.conniption.foreman.util.XMLHandler


  }

  public void update() throws UtilityException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    XMLHandler handler = new XMLHandler();
    try
    {
      response = foreman.makeAPICall(MarketBuilder.getClock(ResponseFormat.XML));
    }
    catch (ForemanException e)
    {
      throw new UtilityException("Make API Call", e);
    }
    map = handler.parseMarketClock(response.toString());
  }
View Full Code Here


  }

  public void update() throws UtilityException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    XMLHandler handler = new XMLHandler();
    try
    {
      response = foreman.makeAPICall(OrdersBuilder.postOrder(account.getId(), b.build().toString(), ResponseFormat.XML));
    }
    catch (ForemanException e)
    {
      throw new UtilityException("Make API Call", e);
    }
    map = handler.parseMarketOrder(response.toString());
  }
View Full Code Here

    map = parseQuote(response.toString());
  }

  public Map<MarketQuotesResponseField, String> parseQuote(String response) throws ModelException
  {
    XMLHandler handler = new XMLHandler();
    try
    {
      return handler.parseMarketQuote(response.toString());
    }
    catch (UtilityException e)
    {
      throw new ModelException("", e);
    }
View Full Code Here

  }

  public void update() throws ModelException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    XMLHandler handler = new XMLHandler();
    try
    {
      response = foreman.makeAPICall(OrdersBuilder.preview(a.getId(), b.build().toString(), ResponseFormat.XML));
    }
    catch (ForemanException | UtilityException e)
    {
      throw new ModelException("Make API Call", e);
    }

    try
    {
      map = handler.parseMarketOrderPreview(response.toString());
    }
    catch (UtilityException e)
    {
      throw new ModelException("", e);
    }
View Full Code Here

    map = parseAccount(response.toString());
  }

  public Map<AccountsField, String> parseAccount(String res) throws ModelException
  {
    XMLHandler handler = new XMLHandler();
    try
    {
      return handler.parseAccount(response.toString());
    }
    catch (UtilityException e)
    {
      throw new ModelException("", e);
    }
View Full Code Here

TOP

Related Classes of com.celexus.conniption.foreman.util.XMLHandler

Copyright © 2018 www.massapicom. 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.