Class ContentfulUserAgentHeaderInterceptor
- java.lang.Object
-
- com.contentful.java.cda.interceptor.HeaderInterceptor
-
- com.contentful.java.cda.interceptor.ContentfulUserAgentHeaderInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public class ContentfulUserAgentHeaderInterceptor extends HeaderInterceptor
This header interceptor will add contentful relevant information to the custom user agent header.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentfulUserAgentHeaderInterceptor.SectionA section of values used to fill out the Contentful custom HTTP header.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHEADER_NAME
-
Constructor Summary
Constructors Constructor Description ContentfulUserAgentHeaderInterceptor(ContentfulUserAgentHeaderInterceptor.Section... sections)Create Header interceptor, saving parameters.
-
Method Summary
-
Methods inherited from class com.contentful.java.cda.interceptor.HeaderInterceptor
getName, getValue, intercept
-
-
-
-
Field Detail
-
HEADER_NAME
public static final java.lang.String HEADER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContentfulUserAgentHeaderInterceptor
public ContentfulUserAgentHeaderInterceptor(ContentfulUserAgentHeaderInterceptor.Section... sections)
Create Header interceptor, saving parameters.- Parameters:
sections- a list of sections to be used to identify this application.
-
-