Class DetailedAppRegistrationResource
java.lang.Object
org.springframework.hateoas.RepresentationModel<AppRegistrationResource>
org.springframework.cloud.dataflow.rest.resource.AppRegistrationResource
org.springframework.cloud.dataflow.rest.resource.DetailedAppRegistrationResource
Extension of
AppRegistrationResource that contains application options and
other detailed application information.- Author:
- Eric Bottard, Gunnar Hillert, Patrick Peralta, Mark Fisher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDedicated subclass to workaround type erasure. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for serialization frameworks.DetailedAppRegistrationResource(String name, String type, String version, String coordinates, Boolean isDefault) Construct aDetailedAppRegistrationResourceobject.Construct aDetailedAppRegistrationResourceobject based on the providedAppRegistrationResource. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInboundPortName(String inboundPortName) Add application's inbound port name.voidaddOption(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty option) Add an application option.voidaddOutboundPortName(String outboundPortName) Add application's outbound port name.Return a set of application's inbound port names.Return an option groups.List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty>Return a list of application options.Return a set of application's outbound port names.Return a description for this application.voidsetShortDescription(String shortDescription) Set a description for this application.Methods inherited from class org.springframework.cloud.dataflow.rest.resource.AppRegistrationResource
getDefaultVersion, getLabel, getMetaDataUri, getName, getType, getUri, getVersion, getVersions, setLabelMethods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, equals, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hashCode, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks, toString
-
Constructor Details
-
DetailedAppRegistrationResource
protected DetailedAppRegistrationResource()Default constructor for serialization frameworks. -
DetailedAppRegistrationResource
public DetailedAppRegistrationResource(String name, String type, String version, String coordinates, Boolean isDefault) Construct aDetailedAppRegistrationResourceobject.- Parameters:
name- application nametype- application typeversion- application versioncoordinates- Maven coordinates for the application artifactisDefault- is this the default app
-
DetailedAppRegistrationResource
Construct aDetailedAppRegistrationResourceobject based on the providedAppRegistrationResource.- Parameters:
resource-AppRegistrationResourcefrom which to obtain app registration data
-
-
Method Details
-
addOption
public void addOption(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty option) Add an application option.- Parameters:
option- application option to add
-
getOptions
public List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> getOptions()Return a list of application options.- Returns:
- list of application options
-
addInboundPortName
Add application's inbound port name.- Parameters:
inboundPortName- application's inbound port name to add
-
addOutboundPortName
Add application's outbound port name.- Parameters:
outboundPortName- application's outbound port name to add
-
getInboundPortNames
Return a set of application's inbound port names.- Returns:
- set of application's inbound port names.
-
getOutboundPortNames
Return a set of application's outbound port names.- Returns:
- set of application's outbound port names.
-
getShortDescription
Return a description for this application.- Returns:
- description for this application
-
getOptionGroups
Return an option groups.- Returns:
- the option groups
-
setShortDescription
Set a description for this application.- Parameters:
shortDescription- description for application
-