org.apache.olingo.commons.api.constants.Constantsv00 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-v4-lib Show documentation
Show all versions of odata-v4-lib Show documentation
Repackaged OData V4 Olingo Library
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.olingo.commons.api.constants;
import org.apache.olingo.commons.api.IConstants;
/**
* Constant values related to the OData protocol.
*/
public final class Constantsv00 implements IConstants{
// JSON stuff
public static final String JSON_METADATA = "odata.metadata";
public static final String JSON_TYPE = "@odata.type";
public static final String JSON_ID = "@odata.id";
public static final String JSON_READ_LINK = "@odata.readLink";
public static final String JSON_EDIT_LINK = "@odata.editLink";
public static final String JSON_CONTEXT = "@odata.context";
public static final String JSON_ETAG = "@odata.etag";
public static final String JSON_MEDIA_ETAG = "@odata.mediaEtag";
public static final String JSON_MEDIA_CONTENT_TYPE = "@odata.mediaContentType";
public static final String JSON_MEDIA_READ_LINK = "@odata.mediaReadLink";
public static final String JSON_MEDIA_EDIT_LINK = "@odata.mediaEditLink";
public static final String JSON_METADATA_ETAG = "@odata.metadataEtag";
public static final String JSON_BIND_LINK_SUFFIX = "@odata.bind";
public static final String JSON_ASSOCIATION_LINK = "@odata.associationLink";
public static final String JSON_NAVIGATION_LINK = "@odata.navigationLink";
public static final String JSON_COUNT = "@odata.count";
public static final String JSON_NEXT_LINK = "@odata.nextLink";
public static final String JSON_DELTA_LINK = "@odata.deltaLink";
@Override
public String getMetadata() {
return JSON_METADATA;
}
@Override
public String getType() {
return JSON_TYPE;
}
@Override
public String getId() {
return JSON_ID;
}
@Override
public String getReadLink() {
return JSON_READ_LINK;
}
@Override
public String getEditLink() {
return JSON_EDIT_LINK;
}
@Override
public String getContext() {
return JSON_CONTEXT;
}
@Override
public String getEtag() {
return JSON_ETAG;
}
@Override
public String getMediaEtag() {
return JSON_MEDIA_ETAG;
}
@Override
public String getMediaContentType() {
return JSON_MEDIA_CONTENT_TYPE;
}
@Override
public String getMediaReadLink() {
return JSON_MEDIA_READ_LINK;
}
@Override
public String getMediaEditLink() {
return JSON_MEDIA_EDIT_LINK;
}
@Override
public String getMetadataEtag() {
return JSON_METADATA_ETAG;
}
@Override
public String getBind() {
return JSON_BIND_LINK_SUFFIX;
}
@Override
public String getAssociationLink() {
return JSON_ASSOCIATION_LINK;
}
@Override
public String getNavigationLink() {
return JSON_NAVIGATION_LINK;
}
@Override
public String getCount() {
return JSON_COUNT;
}
@Override
public String getNextLink() {
return JSON_NEXT_LINK;
}
@Override
public String getDeltaLink() {
return JSON_DELTA_LINK;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy