Class EntityListingRequest
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.AbstractRequest
-
- com.nimbusds.openid.connect.sdk.federation.api.FederationAPIRequest
-
- com.nimbusds.openid.connect.sdk.federation.api.EntityListingRequest
-
@Immutable public class EntityListingRequest extends FederationAPIRequest
Entity listing request.Related specifications:
- OpenID Connect Federation 1.0, section 7.3.1.
-
-
Constructor Summary
Constructors Constructor Description EntityListingRequest(URI endpoint)Creates a new entity listing request.EntityListingRequest(URI endpoint, EntityType entityType)Creates a new entity listing request.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityTypegetEntityType()Returns the type of the entities to list.static EntityListingRequestparse(HTTPRequest httpRequest)Parses an entity listing request from the specified HTTP request.HTTPRequesttoHTTPRequest()Returns the matching HTTP request.Map<String,List<String>>toParameters()Returns the request parameters.-
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
-
-
-
Constructor Detail
-
EntityListingRequest
public EntityListingRequest(URI endpoint)
Creates a new entity listing request.- Parameters:
endpoint- The federation list endpoint. Must not benull.
-
EntityListingRequest
public EntityListingRequest(URI endpoint, EntityType entityType)
Creates a new entity listing request.- Parameters:
endpoint- The federation list endpoint. Must not benull.entityType- The type of the entities to list,nullfor all.
-
-
Method Detail
-
getEntityType
public EntityType getEntityType()
Returns the type of the entities to list.- Returns:
- The type of the entities to list,
nullfor all.
-
toParameters
public Map<String,List<String>> toParameters()
Description copied from class:FederationAPIRequestReturns the request parameters.- Specified by:
toParametersin classFederationAPIRequest- Returns:
- The request parameters.
-
toHTTPRequest
public HTTPRequest toHTTPRequest()
Description copied from interface:RequestReturns the matching HTTP request.- Specified by:
toHTTPRequestin interfaceRequest- Overrides:
toHTTPRequestin classFederationAPIRequest- Returns:
- The HTTP request.
-
parse
public static EntityListingRequest parse(HTTPRequest httpRequest) throws ParseException
Parses an entity listing request from the specified HTTP request.- Parameters:
httpRequest- The HTTP request. Must not benull.- Returns:
- The entity listing request.
- Throws:
ParseException- If parsing failed.
-
-