package oiccli;
import com.auth0.jwt.creators.Message;
import com.google.common.base.Strings;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.net.URI;
import java.net.URISyntaxException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.xml.ws.http.HTTPException;
import oiccli.HTTP.Response;
import oiccli.client_info.ClientInfo;
import oiccli.exceptions.MissingEndpoint;
import oiccli.exceptions.OicCliError;
import oiccli.exceptions.UnsupportedType;
import oiccli.exceptions.ValueError;
import oiccli.exceptions.WrongContentType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Service {
private final static Logger logger = LoggerFactory.getLogger(Service.class);
private static final List successfulCodes =
Arrays.asList(200, 201, 202, 203, 204, 205, 206);
private static final List specialArgs = Arrays.asList("authenticationEndpoint", "algs");
private static final Map attributes = new HashMap() {{
put("version", null);
put("name", "");
put("value", null);
put("port", null);
put("isPortSpecified", false);
put("domain", "");
put("isDomainSpecified", false);
put("domainInitialDot", false);
put("path", "");
put("isPathSpecified", false);
put("isSecure", false);
put("expires", null);
put("shouldDiscard", true);
put("comment", null);
put("commentUrl", null);
put("rest", "");
put("rfc2109", true);
}};
private Message msgType;
private Message responseCls;
private ErrorResponse errorResponse;
private String endpointName;
private boolean isSynchronous = true;
private String request;
private String defaultAuthenticationMethod;
private String httpMethod;
private String bodyType;
private String responseBodyType;
private String endpoint;
private String httpLib;
private KeyJar keyJar;
private String clientAuthenticationMethod;
private List events;
private Map defaultRequestArgs;
private List