|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<WsRestRequestContentType>
edu.internet2.middleware.grouper.ws.rest.contentType.WsRestRequestContentType
public enum WsRestRequestContentType
possible content types by grouper ws rest
Enum Constant Summary | |
---|---|
http
http params set fields in a lite object http request content type should not be set, or set to: application/x-www-form-urlencoded |
|
json
json content type, uses the pluggable json converter http request content type should be set to text/x-json |
|
xhtml
default xhtml content type http request content type should be set to application/xhtml+xml |
|
xml
xml content type http request content type should be set to text/xml |
Method Summary | |
---|---|
abstract WsRestResponseContentType |
calculateResponseContentType()
based on the request type, calculate the response type |
static WsRestRequestContentType |
findByContentType(String theContentType,
String requestBody)
find a request content type by content type |
String |
getContentType()
content type header for http |
static JsonConverter |
jsonConverter()
instantiate the json convert configured in the grouper-ws.properties file |
static void |
main(String[] args)
test out a parse |
abstract Object |
parseString(String input,
StringBuilder warnings)
parse a string to an object |
static WsRestRequestContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static WsRestRequestContentType |
valueOfIgnoreCase(String string,
boolean exceptionOnNotFound)
do a case-insensitive matching |
static WsRestRequestContentType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
abstract String |
writeString(Object object)
write a string representation to result string |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final WsRestRequestContentType xhtml
public static final WsRestRequestContentType http
public static final WsRestRequestContentType xml
public static final WsRestRequestContentType json
Method Detail |
---|
public static WsRestRequestContentType[] values()
for (WsRestRequestContentType c : WsRestRequestContentType.values()) System.out.println(c);
public static WsRestRequestContentType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static JsonConverter jsonConverter()
public abstract WsRestResponseContentType calculateResponseContentType()
public static void main(String[] args)
args
- public abstract Object parseString(String input, StringBuilder warnings)
input
- warnings
- is where warnings should be written to
public abstract String writeString(Object object)
object
- to write to output
public String getContentType()
public static WsRestRequestContentType findByContentType(String theContentType, String requestBody)
theContentType
- requestBody
- is the request onverted to a body
public static WsRestRequestContentType valueOfIgnoreCase(String string, boolean exceptionOnNotFound) throws GrouperRestInvalidRequest
string
- exceptionOnNotFound
- true to throw exception on not found
GrouperRestInvalidRequest
- if problem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |