Class UrlTransformDataFetcher
- java.lang.Object
-
- org.craftercms.engine.graphql.impl.fetchers.RequestAwareDataFetcher
-
- org.craftercms.engine.graphql.impl.fetchers.UrlTransformDataFetcher
-
- All Implemented Interfaces:
graphql.schema.DataFetcher
public class UrlTransformDataFetcher extends RequestAwareDataFetcher
Implementation ofDataFetcher
that transforms a field using aUrlTransformationService
- Since:
- 3.1.1
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected UrlTransformationService
urlTransformationService
-
Constructor Summary
Constructors Constructor Description UrlTransformDataFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
doGet(graphql.schema.DataFetchingEnvironment environment)
Performs the actual fetching of the requested fields.void
setUrlTransformationService(UrlTransformationService urlTransformationService)
-
Methods inherited from class org.craftercms.engine.graphql.impl.fetchers.RequestAwareDataFetcher
get
-
-
-
-
Field Detail
-
urlTransformationService
protected UrlTransformationService urlTransformationService
-
-
Method Detail
-
setUrlTransformationService
public void setUrlTransformationService(UrlTransformationService urlTransformationService)
-
doGet
public Object doGet(graphql.schema.DataFetchingEnvironment environment)
Performs the actual fetching of the requested fields.- Specified by:
doGet
in classRequestAwareDataFetcher
- Parameters:
environment
- theDataFetchingEnvironment
- Returns:
- the resolved value
-
-