#728 - Polishing.
This commit is contained in:
@@ -19,18 +19,19 @@ import lombok.experimental.UtilityClass;
|
||||
|
||||
/**
|
||||
* Static class to find out whether a relation type is defined by the IANA.
|
||||
*
|
||||
*
|
||||
* @see http://www.iana.org/assignments/link-relations/link-relations.xhtml
|
||||
* @author Oliver Gierke
|
||||
* @author Roland Kulcsár
|
||||
* @author Greg Turnquist
|
||||
*/
|
||||
@UtilityClass
|
||||
@Deprecated
|
||||
public class IanaRels {
|
||||
|
||||
/**
|
||||
* Returns whether the given relation type is defined by the IANA.
|
||||
*
|
||||
*
|
||||
* @param rel the relation type to check
|
||||
* @return
|
||||
* @deprecated Migrate to {@link IanaLinkRelations#isIanaRel(String)}.
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.springframework.hateoas.mvc.WebMvcLinkBuilder;
|
||||
/**
|
||||
* Extension of {@link LinkBuilderFactory} for implementations that also support creating {@link LinkBuilder}s by
|
||||
* pointing to a method.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public interface MethodLinkBuilderFactory<T extends LinkBuilder> extends LinkBuilderFactory<T> {
|
||||
@@ -31,7 +31,7 @@ public interface MethodLinkBuilderFactory<T extends LinkBuilder> extends LinkBui
|
||||
/**
|
||||
* Returns a {@link LinkBuilder} pointing to the URI mapped to the given {@link Method} and expanding this mapping
|
||||
* using the given parameters.
|
||||
*
|
||||
*
|
||||
* @param method must not be {@literal null}.
|
||||
* @param parameters
|
||||
* @return
|
||||
@@ -41,7 +41,7 @@ public interface MethodLinkBuilderFactory<T extends LinkBuilder> extends LinkBui
|
||||
/**
|
||||
* Returns a {@link LinkBuilder} pointing to the URI mapped to the given {@link Method} assuming it was invoked on an
|
||||
* object of the given type.
|
||||
*
|
||||
*
|
||||
* @param type must not be {@literal null}.
|
||||
* @param method must not be {@literal null}.
|
||||
* @param parameters
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.springframework.stereotype.Controller;
|
||||
|
||||
/**
|
||||
* Spring configuration to register a {@link PluginRegistry} for {@link EntityLinks}.
|
||||
*
|
||||
*
|
||||
* @author Greg Turnquist
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.util.Assert;
|
||||
/**
|
||||
* Base class to implement {@link ResourceAssembler}s. Will automate {@link ResourceSupport} instance creation and make
|
||||
* sure a self-link is always added.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public abstract class IdentifiableResourceAssemblerSupport<T extends Identifiable<?>, D extends ResourceSupport>
|
||||
@@ -37,7 +37,7 @@ public abstract class IdentifiableResourceAssemblerSupport<T extends Identifiabl
|
||||
|
||||
/**
|
||||
* Creates a new {@link ResourceAssemblerSupport} using the given controller class and resource type.
|
||||
*
|
||||
*
|
||||
* @param controllerClass must not be {@literal null}.
|
||||
* @param resourceType must not be {@literal null}.
|
||||
*/
|
||||
@@ -49,7 +49,7 @@ public abstract class IdentifiableResourceAssemblerSupport<T extends Identifiabl
|
||||
|
||||
/**
|
||||
* Creates a new resource and adds a self link to it consisting using the {@link Identifiable}'s id.
|
||||
*
|
||||
*
|
||||
* @param entity must not be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
@@ -74,7 +74,7 @@ public abstract class IdentifiableResourceAssemblerSupport<T extends Identifiabl
|
||||
|
||||
/**
|
||||
* Extracts the ids of the given values in case they're {@link Identifiable}s. Returns all other objects as they are.
|
||||
*
|
||||
*
|
||||
* @param values must not be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -137,7 +137,7 @@ public class WebFluxLinkBuilder extends TemplateVariableAwareLinkBuilderSupport<
|
||||
|
||||
/**
|
||||
* Creates a new {@link WebFluxLink} for the {@link Link} with the {@link IanaLinkRelations#SELF}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public WebFluxLink withSelfRel() {
|
||||
|
||||
Reference in New Issue
Block a user