-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#28 autocomplete of common HTTP header
- Loading branch information
Showing
4 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
restclient-lib/src/main/java/org/wiztools/restclient/util/ContentTypesCommon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package org.wiztools.restclient.util; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
/** | ||
* | ||
* @author subhash | ||
*/ | ||
public class ContentTypesCommon { | ||
private static final List<String> contentTypes = new ArrayList<>(); | ||
|
||
static { | ||
contentTypes.add("Accept"); | ||
contentTypes.add("Accept-Charset"); | ||
contentTypes.add("Accept-Encoding"); | ||
contentTypes.add("Accept-Language"); | ||
contentTypes.add("Content-MD5"); | ||
contentTypes.add("Content-Type"); | ||
contentTypes.add("Date"); | ||
contentTypes.add("Expect"); | ||
contentTypes.add("From"); | ||
contentTypes.add("If-Match"); | ||
contentTypes.add("If-Modified-Since"); | ||
contentTypes.add("If-None-Match"); | ||
contentTypes.add("If-Range"); | ||
contentTypes.add("If-Unmodified-Since"); | ||
contentTypes.add("Max-Forwards"); | ||
contentTypes.add("Origin"); | ||
contentTypes.add("Pragma"); | ||
contentTypes.add("Range"); | ||
contentTypes.add("Referer"); | ||
contentTypes.add("TE"); | ||
contentTypes.add("User-Agent"); | ||
contentTypes.add("Upgrade"); | ||
contentTypes.add("Via"); | ||
contentTypes.add("Warning"); | ||
} | ||
|
||
public static List<String> getCommon() { | ||
return Collections.unmodifiableList(contentTypes); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters