|
| 1 | +# Licensed to Elasticsearch under one or more contributor |
| 2 | +# license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright |
| 4 | +# ownership. Elasticsearch licenses this file to you under |
| 5 | +# the Apache License, Version 2.0 (the "License"); you may |
| 6 | +# not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on |
| 13 | +# an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
| 14 | +# either express or implied. See the License for the specific |
| 15 | +# language governing permissions and limitations under the License. |
| 16 | + |
| 17 | +@defaultMessage Explicitly specify the ContentType of HTTP entities when creating |
| 18 | +org.apache.http.entity.StringEntity#<init>(java.lang.String) |
| 19 | +org.apache.http.entity.StringEntity#<init>(java.lang.String,java.lang.String) |
| 20 | +org.apache.http.entity.StringEntity#<init>(java.lang.String,java.nio.charset.Charset) |
| 21 | +org.apache.http.entity.ByteArrayEntity#<init>(byte[]) |
| 22 | +org.apache.http.entity.ByteArrayEntity#<init>(byte[],int,int) |
| 23 | +org.apache.http.entity.FileEntity#<init>(java.io.File) |
| 24 | +org.apache.http.entity.InputStreamEntity#<init>(java.io.InputStream) |
| 25 | +org.apache.http.entity.InputStreamEntity#<init>(java.io.InputStream,long) |
| 26 | +org.apache.http.nio.entity.NByteArrayEntity#<init>(byte[]) |
| 27 | +org.apache.http.nio.entity.NByteArrayEntity#<init>(byte[],int,int) |
| 28 | +org.apache.http.nio.entity.NFileEntity#<init>(java.io.File) |
| 29 | +org.apache.http.nio.entity.NStringEntity#<init>(java.lang.String) |
| 30 | +org.apache.http.nio.entity.NStringEntity#<init>(java.lang.String,java.lang.String) |
| 31 | + |
| 32 | +@defaultMessage Use non-deprecated constructors |
| 33 | +org.apache.http.nio.entity.NFileEntity#<init>(java.io.File,java.lang.String) |
| 34 | +org.apache.http.nio.entity.NFileEntity#<init>(java.io.File,java.lang.String,boolean) |
| 35 | +org.apache.http.entity.FileEntity#<init>(java.io.File,java.lang.String) |
| 36 | +org.apache.http.entity.StringEntity#<init>(java.lang.String,java.lang.String,java.lang.String) |
| 37 | + |
| 38 | +@defaultMessage BasicEntity is easy to mess up and forget to set content type |
| 39 | +org.apache.http.entity.BasicHttpEntity#<init>() |
| 40 | + |
| 41 | +@defaultMessage EntityTemplate is easy to mess up and forget to set content type |
| 42 | +org.apache.http.entity.EntityTemplate#<init>(org.apache.http.entity.ContentProducer) |
| 43 | + |
| 44 | +@defaultMessage SerializableEntity uses java serialization and makes it easy to forget to set content type |
| 45 | +org.apache.http.entity.SerializableEntity#<init>(java.io.Serializable) |
0 commit comments