Package org.javacord.core.util.auth
Class OkHttpResponseImpl
- java.lang.Object
-
- org.javacord.core.util.auth.OkHttpResponseImpl
-
-
Field Summary
-
Fields inherited from interface org.javacord.api.util.auth.Response
AUTH_PARAM_PATTERN, AUTH_PARAM_PATTERN_PART, AUTH_PARAM_SPLIT_PATTERN, AUTH_SCHEME_AND_PARAM_PATTERN, AUTH_SCHEME_AND_TOKEN68_PATTERN, AUTH_SCHEME_PATTERN, AUTHENTICATION_HEADER_VALUE_PATTERN, AUTHENTICATION_HEADER_VALUE_SPLIT_PATTERN, AUTHENTICATION_HEADER_VALUE_SPLIT_PATTERN_PART, CHALLENGE_PATTERN_PART, CHALLENGES_CACHE, OWS_PATTERN_PART, QUOTED_PAIR_PATTERN, QUOTED_PAIR_PATTERN_PART, QUOTED_STRING_AUTH_PARAM_AT_END_PATTERN, QUOTED_STRING_PATTERN_PART, TOKEN_PATTERN, TOKEN_PATTERN_PART, TOKEN68_PATTERN_PART, WHITESPACE_SPLIT_PATTERN
-
-
Constructor Summary
Constructors Constructor Description OkHttpResponseImpl(okhttp3.Response response)
Creates a new OkHttpResponseImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Optional<String>
getBody()
int
getCode()
Map<String,List<String>>
getHeaders()
String
getMessage()
int
hashCode()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javacord.api.util.auth.Response
getChallenges, getChallenges, getHeaders
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfaceResponse
-
getHeaders
public Map<String,List<String>> getHeaders()
- Specified by:
getHeaders
in interfaceResponse
-
getBody
public Optional<String> getBody() throws IOException
- Specified by:
getBody
in interfaceResponse
- Throws:
IOException
-
-