Class AbstractRequest.Builder<T,BT extends AbstractRequest.Builder<T,?>>
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<T,BT>
- All Implemented Interfaces:
IRequest.Builder<T,
BT>
- Direct Known Subclasses:
AbstractAuthorizationRequest.Builder
,AbstractDataRequest.Builder
,AuthorizationCodePKCERefreshRequest.Builder
,AuthorizationCodePKCERequest.Builder
,AuthorizationCodeUriRequest.Builder
- Enclosing class:
AbstractRequest<T>
public abstract static class AbstractRequest.Builder<T,BT extends AbstractRequest.Builder<T,?>>
extends Object
implements IRequest.Builder<T,BT>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BT
self()
Return this instance to simulate a self-type.setBody
(org.apache.hc.core5.http.HttpEntity httpEntity) <X> BT
setBodyParameter
(String name, X value) setContentType
(org.apache.hc.core5.http.ContentType contentType) setDefaults
(IHttpManager httpManager, String scheme, String host, Integer port) <X> BT
setHttpManager
(IHttpManager httpManager) setPathParameter
(String name, String value) <X> BT
setQueryParameter
(String name, X value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.michaelthelin.spotify.requests.IRequest.Builder
build
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
setHttpManager
- Specified by:
setHttpManager
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setScheme
- Specified by:
setScheme
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setHost
- Specified by:
setHost
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setPort
- Specified by:
setPort
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setPath
- Specified by:
setPath
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setPathParameter
- Specified by:
setPathParameter
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setDefaults
- Specified by:
setDefaults
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setQueryParameter
- Specified by:
setQueryParameter
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setHeader
- Specified by:
setHeader
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setContentType
- Specified by:
setContentType
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setBody
- Specified by:
setBody
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
setBodyParameter
- Specified by:
setBodyParameter
in interfaceIRequest.Builder<T,
BT extends AbstractRequest.Builder<T, ?>>
-
self
Return this instance to simulate a self-type.- Returns:
- This instance.
-