public static class RESTEndpoint.RESTEndpointBuilder extends Object
Constructor and Description |
---|
RESTEndpointBuilder() |
Modifier and Type | Method and Description |
---|---|
RESTEndpoint.RESTEndpointBuilder |
addModuleParameters()
Add the auth index name and auth index value to the list of parameters.
|
RESTEndpoint.RESTEndpointBuilder |
apiVersion(String apiVersion)
Set the API version for this endpoint.
|
RESTEndpoint |
build()
Build the rest endpoint object
|
RESTEndpoint.RESTEndpointBuilder |
get()
Set the HTTP method to GET.
|
String |
getPath()
This is where we assemble the path (straightforward in itself) but substitute the realm.
|
RESTEndpoint.RESTEndpointBuilder |
header(String header,
String value)
Add the name/value pair to the outgoing headers.
|
RESTEndpoint.RESTEndpointBuilder |
parameter(String name,
String value)
Add the specified name/value pair to the list of parameters.
|
RESTEndpoint.RESTEndpointBuilder |
path(String incoming)
Add the specified value to the path carefully.
|
RESTEndpoint.RESTEndpointBuilder |
post()
Set the HTTP method to POST
|
RESTEndpoint.RESTEndpointBuilder |
postData(String s)
Add HTTP POST data.
|
RESTEndpoint.RESTEndpointBuilder |
realm(String s)
Add the specified realm.
|
public String getPath()
public RESTEndpoint.RESTEndpointBuilder path(String incoming)
incoming
- the value to append to the path.public RESTEndpoint.RESTEndpointBuilder realm(String s)
s
- The realm.public RESTEndpoint.RESTEndpointBuilder parameter(String name, String value)
name
- the name of the parametervalue
- the value of the parameterpublic RESTEndpoint.RESTEndpointBuilder addModuleParameters()
public RESTEndpoint.RESTEndpointBuilder postData(String s)
public RESTEndpoint.RESTEndpointBuilder get()
public RESTEndpoint.RESTEndpointBuilder post()
public RESTEndpoint.RESTEndpointBuilder header(String header, String value)
header
- The header namevalue
- The header valuepublic RESTEndpoint.RESTEndpointBuilder apiVersion(String apiVersion)
apiVersion
- The specified API versionpublic RESTEndpoint build()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.