OpenShift Java Client 2.5.0.Final

com.openshift.internal.client.response
Class BaseResourceDTO

java.lang.Object
  extended by com.openshift.internal.client.response.BaseResourceDTO
Type Parameters:
T - the generic type
Direct Known Subclasses:
ApplicationResourceDTO, CartridgeResourceDTO, DomainResourceDTO, EnvironmentVariableResourceDTO, GearGroupResourceDTO, GearResourceDTO, KeyResourceDTO, UserResourceDTO

public abstract class BaseResourceDTO
extends Object

The Class BaseResourceDTO.


Constructor Summary
protected BaseResourceDTO()
           
protected BaseResourceDTO(Map<String,Link> links, Messages messages)
          Instantiates a new base resource dto.
 
Method Summary
 Link getLink(String name)
          Gets the link.
 Map<String,Link> getLinks()
          Gets the links.
 Messages getMessages()
          Returns the messages that were reported when this resource was created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseResourceDTO

protected BaseResourceDTO()

BaseResourceDTO

protected BaseResourceDTO(Map<String,Link> links,
                          Messages messages)
Instantiates a new base resource dto.

Parameters:
links - the links
Method Detail

getLinks

public final Map<String,Link> getLinks()
Gets the links.

Returns:
all the links

getLink

public final Link getLink(String name)
Gets the link.

Parameters:
name - the name of the link to look for.
Returns:
the named link

getMessages

public Messages getMessages()
Returns the messages that were reported when this resource was created. May be null if retrieved in a session in which we did not create this resource.

Returns:
the messages that were reported when this resource was created

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.