![JAR search and dependency download from the Maven repository](/logo.png)
com.tangosol.coherence.management.internal.resources.VersionsResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence-management Show documentation
Show all versions of coherence-management Show documentation
Oracle Coherence Community Edition
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.coherence.management.internal.resources;
import com.tangosol.coherence.management.internal.EntityMBeanResponse;
import com.tangosol.coherence.management.internal.ClusterNameSupplier;
import com.tangosol.coherence.management.internal.VersionUtils;
import com.tangosol.util.Filter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
*
* The versions resource contains information about the versions of the Coherence management REST interface that are
* active and supported in the current the WLS domain.
*
*
* For information about versions supported by the REST interface, see {@xref version_indicator}.
*
*/
@Path("/coherence")
public class VersionsResource
extends AbstractManagementResource
{
/**
* The GET method on this resource returns information about each supported version of this REST interface.
*/
@GET
@Produces(MEDIA_TYPES)
public Response get()
{
return response(getResponseBody());
}
private EntityMBeanResponse getResponseBody()
{
Filter propertiesFilter = getAttributesFilter();
Filter linksFilter = getLinksFilter();
EntityMBeanResponse response = new EntityMBeanResponse(getRequestContext(), linksFilter);
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy