Examples of ServiceType


Examples of org.platformlayer.ids.ServiceType

  // return serviceUtils.listItems(getProject(), modelClass);
  // }

  @Path("{serviceType}")
  public ServiceResource getServiceResource(@PathParam("serviceType") String serviceType) {
    getScope().put(new ServiceType(serviceType));

    ServiceResource resource = objectInjector.getInstance(ServiceResource.class);
    return resource;
  }
View Full Code Here

Examples of org.platformlayer.ids.ServiceType

import org.platformlayer.ids.ServiceType;

public class ServiceAuthorizationCollectionResource extends XaasResourceBase {
  @Path("{serviceType}")
  public ServiceAuthorizationResource getOne(@PathParam("serviceType") String serviceType) {
    getScope().put(new ServiceType(serviceType));

    ServiceAuthorizationResource resource = objectInjector.getInstance(ServiceAuthorizationResource.class);
    return resource;
  }
View Full Code Here

Examples of org.platformlayer.ids.ServiceType

public class ServiceAuthorizationResource extends XaasResourceBase {
  @GET
  @Produces({ XML, JSON })
  public ServiceAuthorization retrieveItem() throws RepositoryException {
    ServiceType serviceType = getServiceType();

    ServiceAuthorization auth = authorizationRepository.findServiceAuthorization(serviceType, getProject());
    if (auth == null) {
      throw new WebApplicationException(404);
    }
View Full Code Here

Examples of org.platformlayer.ids.ServiceType

  @POST
  @Consumes({ XML, JSON })
  @Produces({ XML, JSON })
  public <T> ServiceAuthorization createService(final ServiceAuthorization authorization) throws OpsException,
      RepositoryException {
    ServiceType serviceType = getServiceType();
    authorization.serviceType = serviceType.getKey();

    final ServiceProvider serviceProvider = opsSystem.getServiceProvider(serviceType);
    if (serviceProvider == null) {
      log.warn("Unknown serviceProvider: " + serviceType);
      throw new WebApplicationException(404);
View Full Code Here

Examples of org.platformlayer.ids.ServiceType

  private void checkItemKey(ItemBase item) throws OpsException {
    PlatformLayerKey key = item.getKey();

    ManagedItemId itemId = getItemId();
    ServiceType serviceType = getServiceType();
    ItemType itemType = getItemType();
    ProjectId project = getProject();

    if (key != null) {
      if (key.getItemId() != null && !equal(key.getItemId(), itemId)) {
View Full Code Here

Examples of org.serviceconnector.service.ServiceType

    this.type = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_TYPE);
    if (type == null) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "required property=" + this.name
          + Constants.PROPERTY_QUALIFIER_TYPE + " is missing");
    }
    ServiceType serviceType = ServiceType.getType(this.type);
    if (serviceType == ServiceType.UNDEFINED) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "unkown serviceType=" + this.name + this.type);
    }
    String remoteNode = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_REMOTE_NODE);
    if (remoteNode != null) {
View Full Code Here

Examples of org.serviceconnector.service.ServiceType

    this.type = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_TYPE);
    if (type == null) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "required property=" + this.name
          + Constants.PROPERTY_QUALIFIER_TYPE + " is missing");
    }
    ServiceType serviceType = ServiceType.getType(this.type);
    if (serviceType == ServiceType.UNDEFINED) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "unkown serviceType=" + this.name + this.type);
    }
    String remoteNode = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_REMOTE_NODE);
    if (remoteNode != null) {
View Full Code Here

Examples of thredds.catalog.ServiceType

      if (!location.startsWith("http:") && !location.startsWith("file:"))
        location = "file:" + location;
      return acquireNcml(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject);

    } else if (location.startsWith("http:")) {
      ServiceType stype = disambiguateHttp(location);
      if (stype == ServiceType.OPENDAP)
        return acquireDODS(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject); // try as a dods file
      else if (stype == ServiceType.CdmRemote)
        return acquireRemote(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject)// open through CDM remote
      // else fall through for HttpService
View Full Code Here

Examples of thredds.catalog.ServiceType

  static private ServiceType disambiguateHttp(String location) throws IOException {

    HTTPSession session = new HTTPSession();

    // have to do dods first
    ServiceType result = checkIfDods(session,location);
    if (result != null)
      return result;

    HTTPMethod method = null;
    try {
View Full Code Here

Examples of thredds.catalog.ServiceType

    StartElement startElement = this.getNextEventIfStartElementIsMine();

    Attribute nameAtt = startElement.getAttributeByName( ServiceElementNames.ServiceElement_Name );
    String name = nameAtt.getValue();
    Attribute serviceTypeAtt = startElement.getAttributeByName( ServiceElementNames.ServiceElement_ServiceType );
    ServiceType serviceType = ServiceType.getType( serviceTypeAtt.getValue() );
    Attribute baseUriAtt = startElement.getAttributeByName( ServiceElementNames.ServiceElement_Base );
    String baseUriString = baseUriAtt.getValue();
    URI baseUri = null;
    try
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.