Package org.restlet.representation

Examples of org.restlet.representation.Variant


        getVariants().add(new RepresentationInfo(mediaType, lastModified, entityTag));
      }
    }
    else {
      for (MediaType mediaType : mediaTypes) {
        getVariants().add(new Variant(mediaType));
      }
    }
  }
View Full Code Here


public class ResourceGroupsResource extends ServerResource {
  private final static Logger LOG = Logger.getLogger(ResourceGroupsResource.class);

  public ResourceGroupsResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

public class CurrentStatesResource extends ServerResource {
  private final static Logger LOG = Logger.getLogger(CurrentStatesResource.class);

  public CurrentStatesResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

public class ExternalViewResource extends ServerResource {
  private final static Logger LOG = Logger.getLogger(ExternalViewResource.class);

  public ExternalViewResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

public class CurrentStateResource extends ServerResource {
  private final static Logger LOG = Logger.getLogger(CurrentStateResource.class);

  public CurrentStateResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

public class ClustersResource extends ServerResource {
  private final static Logger LOG = Logger.getLogger(ClustersResource.class);

  public ClustersResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
    // handle(request,response);
  }
View Full Code Here

public class StateModelsResource extends ServerResource {
  private final static Logger LOG = Logger.getLogger(StateModelsResource.class);

  public StateModelsResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

public class InstanceResource extends ServerResource {
  private final static Logger LOG = Logger.getLogger(InstanceResource.class);

  public InstanceResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

public class ConstraintResource extends ServerResource {

  private final static Logger LOG = Logger.getLogger(ConstraintResource.class);

  public ConstraintResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

  public static String CRITERIA = "Criteria";
  public static String MESSAGETEMPLATE = "MessageTemplate";
  public static String TASKQUEUENAME = "TaskQueueName";

  public SchedulerTasksResource() {
    getVariants().add(new Variant(MediaType.TEXT_PLAIN));
    getVariants().add(new Variant(MediaType.APPLICATION_JSON));
    setNegotiated(false);
  }
View Full Code Here

TOP

Related Classes of org.restlet.representation.Variant

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.