Uses of Class
edu.internet2.middleware.grouper.util.GrouperHttpClient
Packages that use GrouperHttpClient
Package
Description
This package contains utility classes (generally static methods)
-
Uses of GrouperHttpClient in edu.internet2.middleware.grouper.app.externalSystem
Methods in edu.internet2.middleware.grouper.app.externalSystem with parameters of type GrouperHttpClientModifier and TypeMethodDescriptionstatic voidWsBearerTokenExternalSystem.attachAuthenticationToHttpClient(GrouperHttpClient grouperHttpClient, String externalSystemConfigId) static voidWsBearerTokenExternalSystem.attachAuthenticationToHttpClient(GrouperHttpClient grouperHttpClient, String externalSystemConfigId, GrouperLoaderConfig grouperLoaderConfig, Map<String, Object> debugMap) -
Uses of GrouperHttpClient in edu.internet2.middleware.grouper.util
Methods in edu.internet2.middleware.grouper.util that return GrouperHttpClientModifier and TypeMethodDescriptionGrouperHttpClient.addBodyParameter(String key, String value) Add a parameter to the BODY for a POST body form.GrouperHttpClient.addFileToSend(String filename, File file) Adds a parameter to the header.GrouperHttpClient.addUrlParameter(String key, String value) Add a parameter to the URL.GrouperHttpClient.assignAssertJsonPointer(String assertJsonPointer1) check a json pointer for a value to see if request is success.GrouperHttpClient.assignAssertJsonPointerExpectedValueString(String assertJsonPointerExpectedValueString1) if the response code is not this, then exception and log responseGrouperHttpClient.assignAssertResponseCode(int expectedCode) if the response code is not this, then exception and log responseGrouperHttpClient.assignBody(String _body) Sets the body to send.GrouperHttpClient.assignBodyBytes(byte[] _body) Sets the body to send.GrouperHttpClient.assignDebugMap(Map<String, Object> debugMap) debug map for timing and result codeGrouperHttpClient.assignDoNotLogHeaders(String headersCommaSeparated) GrouperHttpClient.assignDoNotLogHeaders(Set<String> headers) GrouperHttpClient.assignDoNotLogParameters(String paramsCommaSeparated) GrouperHttpClient.assignDoNotLogParameters(Set<String> params) GrouperHttpClient.assignDoNotLogRequestBody(boolean theDoNotLogRequestBody) if request body contains sensitive info and shouldnt be loggedGrouperHttpClient.assignDoNotLogResponseBody(boolean theDoNotLogResponseBody) if response body contains sensitive info and shouldnt be loggedGrouperHttpClient.assignGrouperHttpMethod(GrouperHttpMethod grouperHttpMethod) GrouperHttpClient.assignGrouperHttpMethod(String grouperHttpMethodType) GrouperHttpClient.assignHttpMultipartMode(org.apache.http.entity.mime.HttpMultipartMode _httpMultipartMode) Use to override HttpMultipartMode.BROWSER_COMPATIBLE which is the default.GrouperHttpClient.assignHttpResponseBodyCallback(GrouperHttpResponseBodyCallback httpResponseBodyCallback) GrouperHttpClient.assignPassword(String _password) Sets the password for basic auth.GrouperHttpClient.assignProxyType(GrouperProxyType grouperProxyType1) proxy type to override other configurationGrouperHttpClient.assignProxyType(String grouperProxyTypeString) proxy type to override other configurationGrouperHttpClient.assignProxyUrl(String proxyUrl1) proxy url to proxy to (override other configuration)GrouperHttpClient.assignRequestBodyCharset(Charset theRequestBodyCharset) e.g.GrouperHttpClient.assignRequestBodyCharType(org.apache.http.entity.ContentType theRequestBodyCharType) look in StringEntity for usageGrouperHttpClient.assignResponseAsFile(boolean _responseAsFile) Whether you want the response as a file as opposed to a string in memory.GrouperHttpClient.assignResponseFile(File _responseFile) If getting the reponse body as a file, this is the file.GrouperHttpClient.assignResponseFileName(String _responseFileName) The filename to use for the response, if the response is retrieved as a file.GrouperHttpClient.assignResponseHeaders(Map<String, String> _responseHeaders) Any headers sent back in the resopnse.GrouperHttpClient.assignRetries(int theRetries) how many times to retry for a non fatal error on idempotent requestsGrouperHttpClient.assignRetryForThrottlingIsMinutes(boolean retryForThrottlingIsMinutes) GrouperHttpClient.assignRetryForThrottlingUseRetryAfter(boolean retryForThrottlingUseRetryAfter) should the client use the retry-after header.GrouperHttpClient.assignTimeoutMillies(int theTimeoutMillies) GrouperHttpClient.assignTrust(boolean _trust) Trust regardless of cert; ONLY use when you KNOW the endpoint.GrouperHttpClient.assignTrustStore(File _trustStore) Truststore (.jks) to add dynamically to list of truststores.GrouperHttpClient.assignTrustStorePassword(String _trustStoreKey) Password for truststore.Sets the url being called.GrouperHttpClient.assignUser(String _user) Sets the user for basic auth.GrouperHttpClient.assignWebServiceExternalSystemConfigId(String webServiceExternalSystemConfigId) Sets the web service external system config id.GrouperHttpClient.executeRequest()Execute a post with the given parameters, set teh code and the response into the call.Methods in edu.internet2.middleware.grouper.util with parameters of type GrouperHttpClientModifier and TypeMethodDescriptionvoidGrouperHttpClientSetupAuthorization.setupAuthorization(GrouperHttpClient httpClient) booleanGrouperHttpThrottlingCallback.setupThrottlingCallback(GrouperHttpClient httpClient)