All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.inversion.action.db.DbPutAction Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2015-2019 Rocket Partners, LLC
 * https://github.com/inversion-api
 *
 * Licensed 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 io.inversion.action.db;

import io.inversion.ApiException;
import io.inversion.Request;
import io.inversion.Response;
import io.inversion.utils.Utils;

import java.util.List;

/**
 * Delegates all operations to DbPostAction which currently implements all POST/PUT/PATCH methods.
 * 

* Currently this class exists as a potential future compatibility shim and so that people looking at the * source code tree before really digging in will not be confused by the superficial lack of a PUT action class. */ class DbPutAction extends DbPostAction { @Override protected List getDefaultIncludeMatchers(){ return Utils.asList(new RuleMatcher("PUT", "{" + Request.COLLECTION_KEY + "}/[{" + Request.RESOURCE_KEY + "}]")); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy