Class RESTEndpoint
- java.lang.Object
-
- com.sun.identity.install.tools.util.RESTEndpoint
-
public final class RESTEndpoint extends Object
Construct REST endpoints and call them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRESTEndpoint.RESTEndpointBuilderBuild a RESTEndpointstatic classRESTEndpoint.RESTResponseClass to encapsulate the response from REST API.
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHENTICATION_URIstatic StringAUTHENTICATION_URI_API_VERSIONstatic StringCREATE_PROFILE_URIstatic StringCREATE_PROFILE_URI_ACTION_VALUEstatic StringCREATE_PROFILE_URI_API_VERSIONstatic StringSERVER_INFO_URIstatic StringSERVER_INFO_URI_API_VERSION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RESTEndpoint.RESTResponsecall()Call a REST endpoint, returning its response.StringgetPath()For a little less than total debugging, try this:StringtoString()Turn this RESTEndpoint into a string - ONLY for debugging purposes.
-
-
-
Field Detail
-
AUTHENTICATION_URI
public static final String AUTHENTICATION_URI
- See Also:
- Constant Field Values
-
AUTHENTICATION_URI_API_VERSION
public static final String AUTHENTICATION_URI_API_VERSION
- See Also:
- Constant Field Values
-
CREATE_PROFILE_URI
public static final String CREATE_PROFILE_URI
- See Also:
- Constant Field Values
-
CREATE_PROFILE_URI_ACTION_VALUE
public static final String CREATE_PROFILE_URI_ACTION_VALUE
- See Also:
- Constant Field Values
-
CREATE_PROFILE_URI_API_VERSION
public static final String CREATE_PROFILE_URI_API_VERSION
- See Also:
- Constant Field Values
-
SERVER_INFO_URI
public static final String SERVER_INFO_URI
- See Also:
- Constant Field Values
-
SERVER_INFO_URI_API_VERSION
public static final String SERVER_INFO_URI_API_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
call
public RESTEndpoint.RESTResponse call() throws IOException
Call a REST endpoint, returning its response.- Returns:
- RESTResponse object containing status and text of returned value.
- Throws:
IOException
-
toString
public String toString()
Turn this RESTEndpoint into a string - ONLY for debugging purposes.
-
getPath
public String getPath()
For a little less than total debugging, try this:- Returns:
- The path of the endpoint
-
-