code: public void setup(String host, String path, Map<String, Object> params) {
          this.host = host;
          this.path = path;
          this.params = params;
          if (Integer.valueOf(3).equals(params.get("objectEncoding"))) {
              if (log.isDebugEnabled()) {
                  log.debug("Setting object encoding to AMF3");
              }
              state.setEncoding(Encoding.AMF3);
          }
      }
docs: Initialize connection.
  
  @param host
  Connection host
  @param path
  Connection path
  @param params
  Params passed from client