public final class RegisterUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<java.lang.Object> |
doLogin(java.lang.String username,
java.lang.String password,
java.lang.String url)
Do login.
|
static void |
doRegister(java.lang.String json,
java.lang.String url,
java.lang.String type)
Do register.
|
static void |
doRegister(java.lang.String json,
java.lang.String url,
java.lang.String type,
java.lang.String accessToken)
Do register.
|
static void |
doUnregister(java.lang.String json,
java.lang.String url,
java.lang.String accessToken)
Do unregister.
|
public static void doRegister(java.lang.String json,
java.lang.String url,
java.lang.String type,
java.lang.String accessToken)
throws java.io.IOException
json - the jsonurl - the urltype - the typeaccessToken - the tokenjava.io.IOException - the io exceptionpublic static void doRegister(java.lang.String json,
java.lang.String url,
java.lang.String type)
throws java.io.IOException
json - the jsonurl - the urltype - the typejava.io.IOException - the io exceptionpublic static void doUnregister(java.lang.String json,
java.lang.String url,
java.lang.String accessToken)
throws java.io.IOException
json - the jsonurl - the urlaccessToken - the tokenjava.io.IOException - the io exceptionpublic static java.util.Optional<java.lang.Object> doLogin(java.lang.String username,
java.lang.String password,
java.lang.String url)
throws java.io.IOException
username - the usernamepassword - the passwordurl - the ulrjava.io.IOException - the io exceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.