Get all available genre seeds.

@return All available genre seeds.
@throws IOException            In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause.
336847
public String[] execute() throws
          IOException,
          SpotifyWebApiException {
    List<String> genres = new Gson().fromJson(
            new JsonParser()
                    .parse(getJson())
                    .getAsJsonObject()
                    .get("genres")
                    .getAsJsonArray(),
            new TypeToken<List<String>>() {
            }.getType()
    );

    return genres.toArray(new String[0]);
  }
41183
protected List<ColumnDef> getIndexes() throws IOException
    {
        CfDef cfdef = getCfInfo(loadSignature).cfDef;
        List<ColumnDef> indexes = new ArrayList<ColumnDef>();
        for (ColumnDef cdef : cfdef.column_metadata)
        {
            if (cdef.index_type != null)
                indexes.add(cdef);
        }
        return indexes;
    }
618757
@Restricted(DoNotUse.class) // WebOnly
    public HttpResponse doPlatformPluginList() throws IOException {
        SetupWizard setupWizard = Jenkins.get().getSetupWizard();
        if (setupWizard != null) {
            if (InstallState.UPGRADE.equals(Jenkins.get().getInstallState())) {
                JSONArray initialPluginData = getPlatformPluginUpdates();
                if(initialPluginData != null) {
                    return HttpResponses.okJSON(initialPluginData);
                }
            } else {
                JSONArray initialPluginData = getPlatformPluginList();
                if(initialPluginData != null) {
                    return HttpResponses.okJSON(initialPluginData);
                }
            }
        }
        return HttpResponses.okJSON();
    }
371587
ContentMatcher[] getMatchers()
  {
    if (tc.isEntryEnabled())
      tc.entry(this,cclass, "getMatchers");

    //  ans removed as it is never used !
    //    Matcher[] ans = new Matcher[wildMatchers.size()];

    if (tc.isEntryEnabled())
      tc.exit(this,cclass, "getMatchers");
    return (ContentMatcher[]) wildMatchers.toArray(new ContentMatcher[0]);

  }
438981
@Override
    public String getContentType() {
        if (url.getFile().endsWith("!/")) {
            // the type for jar file itself is always "x-java/jar"
            return "x-java/jar";
        }
        String cType = null;
        String entryName = getEntryName();

        if (entryName != null) {
            // if there is an Jar Entry, get the content type from the name
            cType = guessContentTypeFromName(entryName);
        } else {
            try {
                connect();
                cType = jarFileURLConnection.getContentType();
            } catch (IOException ioe) {
                // Ignore
            }
        }
        if (cType == null) {
            cType = "content/unknown";
        }
        return cType;
    }
913090
public static String getGenre(int i)
	{
		if ((i < GENRES.length) && (i >= 0)) 
			return GENRES[i];
		else
			return null;
	}
873709
public List<IVdmSourceUnit> getSpecFiles() throws CoreException
	{
		List<IVdmSourceUnit> list = new Vector<IVdmSourceUnit>();
		IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
		for (String contentTypeId : language.getContentTypes())
		{
			for (IVdmSourceUnit iVdmSourceUnit : getFiles(contentTypeManager.getContentType(contentTypeId)))
			{
				if(!list.contains(iVdmSourceUnit))
				{
					list.add(iVdmSourceUnit);
				}
			}
		}

		return list;
	}
1338329
public List<Article> get() throws IOException {
		final Request request = data.build();
		singleton.load(request);
		return singleton.get(request.individual ? request.url + "feed/?withoutcomments=1" : request.url, request.search);
	}
847069
@SuppressWarnings("unchecked")
  public Paging<Track> execute() throws
          IOException,
          SpotifyWebApiException {
    return new Track.JsonUtil().createModelObjectPaging(getJson());
  }
291477
@Override
    public List<Host> getSeedHosts() {
        List<Host> hosts = new ArrayList<Host>();
        if (seeds != null) {
            for (String seed : seeds.split(",")) {
                seed = seed.trim();
                if (seed.length() > 0) {
                    hosts.add(new Host(seed, this.port));
                }
            }
        }
        return hosts;
    }
739145
protected List jsonList() {
        checkJsonContentType();
        try {
            return JsonHelper.toList(getRequestString());
        } catch (IOException e) {
            throw new WebException(e);
        }
    }
1046316
@GET
    @Path("/")
    @Produces(MediaType.APPLICATION_JSON)
    // Swagger annotations
    @ApiOperation(value = "Retrieve a list of technologies", httpMethod = "GET", notes = "Get a list of the currently registered set of technologies. This should not be cached as it may change at any time.")
    @ApiResponses(value = { @ApiResponse(code = 200, message = "The list of technologies") })
    public Response tech(@Context UriInfo info) {
        ServiceConnector serviceConnector = new ServiceConnector(info.getBaseUri());
        return Response.ok(serviceConnector.getServices().getServices(), MediaType.APPLICATION_JSON).build();
    }
1313682
public List<ITopicNode> getAllTopicNodes() {
        final ArrayList<ITopicNode> topicNodes = new ArrayList<ITopicNode>();
        for (final Entry<Integer, List<ITopicNode>> topicEntry : topics.entrySet()) {
            topicNodes.addAll(topicEntry.getValue());
        }

        return topicNodes;
    }
399787
public List<ResourceRef> getJarResources() throws IOException {
        if (jarResources == null) {
            if (logger.isInfoEnabled()) {
                logger.info("[jarFile] start to found available jar files for rose to scanning...");
            }
            List<ResourceRef> jarResources = new LinkedList<ResourceRef>();
            Resource[] metaInfResources = resourcePatternResolver
                    .getResources("classpath*:/META-INF/");
            for (Resource metaInfResource : metaInfResources) {
                URL urlObject = metaInfResource.getURL();
                if (ResourceUtils.isJarURL(urlObject)) {
                    try {
                        String path = URLDecoder.decode(urlObject.getPath(), "UTF-8"); // fix 20%
                        if (path.startsWith("file:")) {
                            path = path.substring("file:".length(), path.lastIndexOf('!'));
                        } else {
                            path = path.substring(0, path.lastIndexOf('!'));
                        }
                        Resource resource = new FileSystemResource(path);
                        if (jarResources.contains(resource)) {
                            if (logger.isDebugEnabled()) {
                                logger.debug("[jarFile] skip replicated jar resource: " + path);// 在多个 linux环境 下发现有重复,fix it!
                            }
                        } else {
                            ResourceRef ref = ResourceRef.toResourceRef(resource);
                            if (ref.getModifiers() != null) {
                                jarResources.add(ref);
                                if (logger.isInfoEnabled()) {
                                    logger.info("[jarFile] add jar resource: " + ref);
                                }
                            } else {
                                if (logger.isDebugEnabled()) {
                                    logger.debug("[jarFile] not rose jar resource: " + path);
                                }
                            }
                        }
                    } catch (Exception e) {
                        logger.error(urlObject, e);
                    }
                } else {
                    if (logger.isDebugEnabled()) {
                        logger.debug("[jarFile] not rose type(not a jar) " + urlObject);
                    }
                }
            }
            this.jarResources = jarResources;
            if (logger.isInfoEnabled()) {
                logger.info("[jarFile] found " + jarResources.size() + " jar files: "
                        + jarResources);
            }
        } else {
            if (logger.isInfoEnabled()) {
                logger.info("[jarFile] found cached " + jarResources.size() + " jar files: "
                        + jarResources);
            }
        }
        return Collections.unmodifiableList(jarResources);
    }
645231
public String []list() throws IOException
  {
    try {
      String []list = getFile().list();

      if (list != null)
        return list;
    } catch (AccessControlException e) {
      log.finer(e.toString());
    }

    return new String[0];
  }
572866
public List<Webhook> list() throws OpenpayServiceException, ServiceUnavailableException {
		String path = String.format(BASE_PATH, this.getMerchantId());
		return this.getJsonClient().list(path, new HashMap<String, String>(), Webhook.class);
	}
282618
public JsonNode getApplicationsTree() throws IOException {
        Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/fetch").request().buildGet();
        return invocation.invoke().readEntity(JsonNode.class);
    }