blob: 605971433df8d6a76261c6a7caf6141cf854212c [file] [log] [blame]
// ***************************************************************************************************************************
// * 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.juneau.rest.response;
import static org.apache.juneau.rest.response.Created.*;
import org.apache.juneau.http.annotation.*;
/**
* Represents an <c>HTTP 201 Created</c> response.
*
* <div class='warn'>
* <b>Deprecated</b> - Use {@link org.apache.juneau.http.response.Created}
* </div>
*
* <p>
* The request has been fulfilled, resulting in the creation of a new resource.
*/
@Response(code=CODE, description=MESSAGE)
@Deprecated
public class Created extends HttpResponse {
/** HTTP status code */
public static final int CODE = 201;
/** Default message */
public static final String MESSAGE = "Created";
/** Reusable instance. */
public static final Created INSTANCE = new Created();
/**
* Constructor using HTTP-standard message.
*/
public Created() {
this(MESSAGE);
}
/**
* Constructor using custom message.
* @param message Message to send as the response.
*/
public Created(String message) {
super(message);
}
}