public abstract class AbstractJsonDTOFactory extends Object implements IRestResponseFactory
| Constructor and Description |
|---|
AbstractJsonDTOFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
createData(EnumDataType dataType,
Messages messages,
org.jboss.dmr.ModelNode dataNode) |
RestResponse |
get(String json)
Returns a
RestResponse instance for a given rest response string. |
protected Boolean |
getAsBoolean(org.jboss.dmr.ModelNode node,
String propertyName)
Returns the property identified by the given name in the given model node, or null if the named property is
undefined.
|
protected int |
getAsInteger(org.jboss.dmr.ModelNode node,
String propertyName)
Returns the property identified by the given name in the given model node, or null if the named property is
undefined.
|
protected String |
getAsString(org.jboss.dmr.ModelNode node,
String propertyName)
Returns the property identified by the given name in the given model
node, or null if the named property is undefined.
|
protected org.jboss.dmr.ModelNode |
getModelNode(String content)
Gets the model node.
|
protected boolean |
isDefined(org.jboss.dmr.ModelNode node) |
public RestResponse get(String json) throws OpenShiftException
IRestResponseFactoryRestResponse instance for a given rest response string.get in interface IRestResponseFactoryOpenShiftExceptionRestResponseprotected abstract Object createData(EnumDataType dataType, Messages messages, org.jboss.dmr.ModelNode dataNode)
protected org.jboss.dmr.ModelNode getModelNode(String content) throws OpenShiftException
content - the contentOpenShiftException - the open shift exceptionprotected String getAsString(org.jboss.dmr.ModelNode node, String propertyName)
node - the model nodepropertyName - the name of the propertyprotected Boolean getAsBoolean(org.jboss.dmr.ModelNode node, String propertyName)
node - the model nodepropertyName - the name of the propertyprotected int getAsInteger(org.jboss.dmr.ModelNode node,
String propertyName)
node - the model nodepropertyName - the name of the propertyprotected boolean isDefined(org.jboss.dmr.ModelNode node)
Copyright © 2016 JBoss by Red Hat. All rights reserved.