|
|||||||||
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(java.lang.String theContentType,
java.lang.String requestBody)
find a request content type by content type |
java.lang.String |
getContentType()
content type header for http |
static JsonConverter |
jsonConverter()
instantiate the json convert configured in the grouper-ws.properties file |
static void |
main(java.lang.String[] args)
test out a parse |
abstract java.lang.Object |
parseString(java.lang.String input,
java.lang.StringBuilder warnings)
parse a string to an object |
static WsRestRequestContentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static WsRestRequestContentType |
valueOfIgnoreCase(java.lang.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 java.lang.String |
writeString(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static JsonConverter jsonConverter()
public abstract WsRestResponseContentType calculateResponseContentType()
public static void main(java.lang.String[] args)
args
- public abstract java.lang.Object parseString(java.lang.String input, java.lang.StringBuilder warnings)
input
- warnings
- is where warnings should be written to
public abstract java.lang.String writeString(java.lang.Object object)
object
- to write to output
public java.lang.String getContentType()
public static WsRestRequestContentType findByContentType(java.lang.String theContentType, java.lang.String requestBody)
theContentType
- requestBody
- is the request onverted to a body
public static WsRestRequestContentType valueOfIgnoreCase(java.lang.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 |