Class AbstractEndpoint<E extends AbstractEndpoint<E>>
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.extension.endpoints.AbstractEndpoint<E>
- All Implemented Interfaces:
Copyable<E>,Endpoint<E>,Serializable
- Direct Known Subclasses:
DefaultEndpoint,DefaultPageableEndpoint
public abstract class AbstractEndpoint<E extends AbstractEndpoint<E>>
extends Object
implements Endpoint<E>
- Author:
- Nick Crum (ncrum)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Endpoint
Endpoint.Attributes, Endpoint.Method -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA key-value map used to provide additional metadata beyond the first-class properties.List<Conditional<?>>A set of conditions used to indicate when this component should be rendered.Component<?>getScope()getType()getUri()inthashCode()voidsetAttributes(Map<String, Object> attributes) Sets the attributes map.voidsetConditionals(List<Conditional<?>> conditionals) Sets the conditionals for this component.voidsetHeaders(Map<String, Object> headers) voidsetMapParams(List<Mapping<?>> mapParams) voidsetMethod(Endpoint.Method method) voidvoidvoidvoidsetTransformRequestBody(TransformBody transformRequestBody) voidsetTransformResponseBody(TransformBody transformResponseBody) voidvoidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Endpoint
apply, attribute, clearConditionals, clearHeaders, clearParamMappings, clearParams, conditional, conditionals, delete, findAttribute, findAttribute, get, getAttribute, getAttribute, hasAttribute, header, headers, mapParam, mapParams, method, method, param, params, patch, post, put, removeAttribute, removeHeader, removeMapParam, removeParam, responseIsPartialState, responseIsPartialState, scope, scopes, self, transformRequest, transformRequest, transformResponse, transformResponse, type, uri
-
Constructor Details
-
AbstractEndpoint
public AbstractEndpoint() -
AbstractEndpoint
-
-
Method Details
-
getAttributes
Description copied from interface:EndpointA key-value map used to provide additional metadata beyond the first-class properties. By default, this method returns a read-only empty map for backwards compatibility. Either extendAbstractEndpointor ensure that your implementation overrides this default method.- Specified by:
getAttributesin interfaceEndpoint<E extends AbstractEndpoint<E>>- Returns:
- the attributes map
-
setAttributes
Description copied from interface:EndpointSets the attributes map. This is a no-op for backwards compatibility. Either extendAbstractEndpointor ensure that your implementation overrides this default method.- Specified by:
setAttributesin interfaceEndpoint<E extends AbstractEndpoint<E>>- Parameters:
attributes- the attributes map
-
getType
- Specified by:
getTypein interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getUri
- Specified by:
getUriin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getMethod
- Specified by:
getMethodin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getScope
- Specified by:
getScopein interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getParams
- Specified by:
getParamsin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getHeaders
- Specified by:
getHeadersin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getMapParams
- Specified by:
getMapParamsin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getTransformRequestBody
- Specified by:
getTransformRequestBodyin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getTransformResponseBody
- Specified by:
getTransformResponseBodyin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
getConditionals
Description copied from interface:EndpointA set of conditions used to indicate when this component should be rendered. This is most commonly used by form components to hide/show fields and grids depending on the form state.- Specified by:
getConditionalsin interfaceEndpoint<E extends AbstractEndpoint<E>>- Returns:
- the set of conditionals
-
getParent
- Specified by:
getParentin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setType
- Specified by:
setTypein interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setUri
- Specified by:
setUriin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setMethod
- Specified by:
setMethodin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setScope
- Specified by:
setScopein interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setParams
- Specified by:
setParamsin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setHeaders
- Specified by:
setHeadersin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setMapParams
- Specified by:
setMapParamsin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setTransformRequestBody
- Specified by:
setTransformRequestBodyin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setTransformResponseBody
- Specified by:
setTransformResponseBodyin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
setConditionals
Description copied from interface:EndpointSets the conditionals for this component.- Specified by:
setConditionalsin interfaceEndpoint<E extends AbstractEndpoint<E>>- Parameters:
conditionals- the conditionals
-
setParent
- Specified by:
setParentin interfaceEndpoint<E extends AbstractEndpoint<E>>
-
equals
-
canEqual
-
hashCode
public int hashCode()
-