mirror of https://github.com/apache/jclouds.git
Removed unused binder
This commit is contained in:
parent
2f11eac636
commit
cbaf2a4605
|
@ -33,9 +33,7 @@ import javax.ws.rs.PathParam;
|
|||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.chef.binders.AdminFlagFromCreateClientOptions;
|
||||
import org.jclouds.chef.binders.BindAdminClientToJsonPayload;
|
||||
import org.jclouds.chef.binders.BindChecksumsToJsonPayload;
|
||||
import org.jclouds.chef.binders.BindClientnameToJsonPayload;
|
||||
import org.jclouds.chef.binders.BindCreateClientOptionsToJsonPayload;
|
||||
import org.jclouds.chef.binders.BindGenerateKeyForClientToJsonPayload;
|
||||
import org.jclouds.chef.binders.BindIsCompletedToJsonPayload;
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
/**
|
||||
*
|
||||
* Copyright (C) 2010 Cloud Conscious, LLC. <info@cloudconscious.com>
|
||||
*
|
||||
* ====================================================================
|
||||
* 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 org.jclouds.chef.binders;
|
||||
|
||||
import javax.inject.Singleton;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.http.HttpRequest;
|
||||
import org.jclouds.rest.binders.BindToStringPayload;
|
||||
|
||||
/**
|
||||
* Bind the parameters to create an administrator client.
|
||||
*
|
||||
* @author Ignasi Barrera
|
||||
*
|
||||
*/
|
||||
@Singleton
|
||||
public class BindAdminClientToJsonPayload extends BindToStringPayload {
|
||||
|
||||
@Override
|
||||
public HttpRequest bindToRequest( HttpRequest request, Object payload ) {
|
||||
super.bindToRequest(request, String.format("{\"name\":\"%s\", \"admin\": true}",
|
||||
payload));
|
||||
request.getPayload().getContentMetadata().setContentType(MediaType.APPLICATION_JSON);
|
||||
return request;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue