public class SimpleOAuth2Request extends Object implements OAuth2Request
| 构造器和说明 |
|---|
SimpleOAuth2Request(org.hswebframework.expands.request.http.HttpRequest request) |
public SimpleOAuth2Request(org.hswebframework.expands.request.http.HttpRequest request)
public void setConvertHandler(ResponseConvertHandler convertHandler)
public void setResponseJudge(ResponseJudge responseJudge)
public OAuth2Request onRefreshTokenExpired(TokenExpiredCallBack refreshTokenExpiredCallBack)
onRefreshTokenExpired 在接口中 OAuth2Requestpublic OAuth2Request onTokenExpired(TokenExpiredCallBack callback)
onTokenExpired 在接口中 OAuth2Requestpublic OAuth2Response upload(String name, InputStream inputStream)
upload 在接口中 OAuth2Requestpublic OAuth2Response upload(String name, InputStream inputStream, String fileName)
upload 在接口中 OAuth2Requestpublic OAuth2Request params(Map<String,String> params)
params 在接口中 OAuth2Requestpublic OAuth2Request param(String name, Object value)
OAuth2Requestparam 在接口中 OAuth2Requestname - 参数名称value - 参数值public OAuth2Request requestBody(String value)
OAuth2RequestrequestBody 在接口中 OAuth2Requestvalue - 请求内容public OAuth2Request header(String name, String value)
OAuth2Requestheader 在接口中 OAuth2Requestname - 名称value - 值public OAuth2Request cookie(String cookie)
OAuth2Requestcookie 在接口中 OAuth2Requestcookie - 值public OAuth2Request contentType(String contentType)
OAuth2RequestcontentType 在接口中 OAuth2Requestpublic OAuth2Request accept(String accept)
OAuth2Requestaccept 在接口中 OAuth2Requestpublic OAuth2Request timeout(long millisecond, java.util.function.Consumer<OAuth2Request> timeoutCallBack)
OAuth2Requesttimeout 在接口中 OAuth2Requestmillisecond - 超时时间(毫秒),小于0则不设置超时timeoutCallBack - 超时后的处理回调Consumerprotected SimpleOAuth2Response createNativeResponse(java.util.function.Supplier<org.hswebframework.expands.request.http.Response> responseSupplier)
protected OAuth2Response createResponse(java.util.function.Supplier<org.hswebframework.expands.request.http.Response> responseSupplier)
protected OAuth2Response createUnCheckResponse(org.hswebframework.web.authorization.oauth2.client.simple.request.UnCheck<org.hswebframework.expands.request.http.Response> unCheck)
public OAuth2Response get()
OAuth2Requestget 在接口中 OAuth2Requestpublic OAuth2Response put()
OAuth2Requestput 在接口中 OAuth2Requestpublic OAuth2Response post()
OAuth2Requestpost 在接口中 OAuth2Requestpublic OAuth2Response delete()
OAuth2Requestdelete 在接口中 OAuth2Requestpublic OAuth2Response patch()
OAuth2Requestpatch 在接口中 OAuth2RequestCopyright © 2018. All rights reserved.