|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<WsRestResponseContentType>
edu.internet2.middleware.grouper.ws.rest.contentType.WsRestResponseContentType
public enum WsRestResponseContentType
possible content types by grouper ws rest
Enum Constant Summary | |
---|---|
json
json content type |
|
xhtml
default xhtml content type |
|
xml
xml content type |
Method Summary | |
---|---|
abstract String |
getContentType()
get the content type |
abstract Object |
parseString(String input)
parse a string to an object |
static WsRestResponseContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static WsRestResponseContentType |
valueOfIgnoreCase(String string,
boolean exceptionOnNotFound)
do a case-insensitive matching |
static WsRestResponseContentType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
abstract void |
writeString(Object object,
Writer writer)
write a string representation to an outputstream |
static XStream |
xstream(boolean isJson)
setup an xstream object for input/output |
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 WsRestResponseContentType xhtml
public static final WsRestResponseContentType xml
public static final WsRestResponseContentType json
Method Detail |
---|
public static WsRestResponseContentType[] values()
for (WsRestResponseContentType c : WsRestResponseContentType.values()) System.out.println(c);
public static WsRestResponseContentType 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 abstract void writeString(Object object, Writer writer)
object
- to write to outputwriter
- to write to (e.g. back to http client)warnings
- is where warnings should be written topublic abstract Object parseString(String input)
input
-
public abstract String getContentType()
public static XStream xstream(boolean isJson)
isJson
- driver for json
public static WsRestResponseContentType 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 |