Package ubic.gemma.persistence.util
Class EntityUrlBuilder
java.lang.Object
ubic.gemma.persistence.util.EntityUrlBuilder
- Direct Known Subclasses:
WebEntityUrlBuilder
This builder allows for generating URLs for entities in Gemma Web and REST.
- Author:
- poirigui
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassEntityUrlBuilder.AllEntitiesUrl<T extends Identifiable>classclassclassclassclassEntityUrlBuilder.EntityUrl<T extends Identifiable>Represents a URL for anIdentifiableentity.classAllows for choosing a specific entity.classclassclassclassclassEntityUrlBuilder.RestEntityUrl<T extends Identifiable>Generate a URL for Gemma REST.classclassclassclassEntityUrlBuilder.WebEntityUrl<U extends Identifiable>Generate a URL for Gemma Web. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromBaseUrl(String baseUrl) Obtain anEntityUrlBuilder.EntityUrlChooserfor generating a URL relative to a base URL.Obtain anEntityUrlBuilder.EntityUrlChooserfor generating a URL relative to the host URL.voidvoid
-
Constructor Details
-
EntityUrlBuilder
-
-
Method Details
-
setWebByDefault
public void setWebByDefault() -
setRestByDefault
public void setRestByDefault() -
fromHostUrl
Obtain anEntityUrlBuilder.EntityUrlChooserfor generating a URL relative to the host URL.Use this for absolute URLs.
-
fromBaseUrl
Obtain anEntityUrlBuilder.EntityUrlChooserfor generating a URL relative to a base URL.Use this for relative URLs.
-