com.unboundid.scim.wink
Class SCIMApplication

java.lang.Object
  extended by javax.ws.rs.core.Application
      extended by org.apache.wink.common.WinkApplication
          extended by com.unboundid.scim.wink.SCIMApplication

public class SCIMApplication
extends org.apache.wink.common.WinkApplication

This class is a JAX-RS Application that returns the SCIM resource implementations.


Field Summary
 
Fields inherited from class org.apache.wink.common.WinkApplication
DEFAULT_PRIORITY, SYSTEM_PRIORITY
 
Constructor Summary
SCIMApplication(Collection<ResourceDescriptor> resourceDescriptors, SCIMBackend backend)
          Create a new SCIMApplication that defines the endpoints provided by the ResourceDescriptors and uses the provided backend to process the request.
 
Method Summary
 void acquireBulkRequestPermit()
          Attempt to acquire a permit to process a bulk request.
 Map<String,ResourceDescriptor> getDescriptors()
          Retrieve the resource descriptors keyed by name of endpoint.
 Set<Object> getInstances()
           
 Collection<ResourceStats> getResourceStats()
          Retrieves the statistics for the resources being served by this application instance.
 ServiceProviderConfig getServiceProviderConfig()
          Retrieve the service provider configuration.
 ResourceStats getStatsForResource(String resourceName)
          Retrieve the stats for a given resource.
 File getTmpDataDir()
          Return the directory that should be used to store temporary files, or null for the system dependent default temporary-file directory (specified by the system property java.io.tmpdir.
 void releaseBulkRequestPermit()
          Release a permit to process a bulk request.
 void setBulkMaxConcurrentRequests(int bulkMaxConcurrentRequests)
          Specify the maximum number of concurrent bulk requests.
 void setBulkMaxOperations(long bulkMaxOperations)
          Specify the maximum number of operations permitted in a bulk request.
 void setBulkMaxPayloadSize(long bulkMaxPayloadSize)
          Specify the maximum payload size in bytes of a bulk request.
 void setTmpDataDir(File tmpDataDir)
          Return the directory that should be used to store temporary files, or null for the system dependent default temporary-file directory (specified by the system property java.io.tmpdir.
 
Methods inherited from class org.apache.wink.common.WinkApplication
getClasses, getPriority
 
Methods inherited from class javax.ws.rs.core.Application
getSingletons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCIMApplication

public SCIMApplication(Collection<ResourceDescriptor> resourceDescriptors,
                       SCIMBackend backend)
Create a new SCIMApplication that defines the endpoints provided by the ResourceDescriptors and uses the provided backend to process the request.

Parameters:
resourceDescriptors - The ResourceDescriptors to serve.
backend - The backend that should be used to process the requests.
Method Detail

getInstances

public Set<Object> getInstances()
Overrides:
getInstances in class org.apache.wink.common.WinkApplication

getResourceStats

public Collection<ResourceStats> getResourceStats()
Retrieves the statistics for the resources being served by this application instance.

Returns:
The statistics for the resources being served by this application instance.

getStatsForResource

public ResourceStats getStatsForResource(String resourceName)
Retrieve the stats for a given resource.

Parameters:
resourceName - The name of the resource.
Returns:
The stats for the requested resource.

getServiceProviderConfig

public ServiceProviderConfig getServiceProviderConfig()
Retrieve the service provider configuration.

Returns:
The service provider configuration.

setBulkMaxOperations

public void setBulkMaxOperations(long bulkMaxOperations)
Specify the maximum number of operations permitted in a bulk request.

Parameters:
bulkMaxOperations - The maximum number of operations permitted in a bulk request.

setBulkMaxPayloadSize

public void setBulkMaxPayloadSize(long bulkMaxPayloadSize)
Specify the maximum payload size in bytes of a bulk request.

Parameters:
bulkMaxPayloadSize - The maximum payload size in bytes of a bulk request.

setBulkMaxConcurrentRequests

public void setBulkMaxConcurrentRequests(int bulkMaxConcurrentRequests)
Specify the maximum number of concurrent bulk requests.

Parameters:
bulkMaxConcurrentRequests - The maximum number of concurrent bulk requests.

getDescriptors

public Map<String,ResourceDescriptor> getDescriptors()
Retrieve the resource descriptors keyed by name of endpoint.

Returns:
The resource descriptors keyed by name of endpoint.

getTmpDataDir

public File getTmpDataDir()
Return the directory that should be used to store temporary files, or null for the system dependent default temporary-file directory (specified by the system property java.io.tmpdir.

Returns:
The directory that should be used to store temporary files, or null for the system dependent default temporary-file directory.

setTmpDataDir

public void setTmpDataDir(File tmpDataDir)
Return the directory that should be used to store temporary files, or null for the system dependent default temporary-file directory (specified by the system property java.io.tmpdir.

Parameters:
tmpDataDir - The directory that should be used to store temporary files, or null for the system dependent default temporary-file directory.

acquireBulkRequestPermit

public void acquireBulkRequestPermit()
                              throws SCIMException
Attempt to acquire a permit to process a bulk request.

Throws:
SCIMException - If a permit cannot be immediately obtained.

releaseBulkRequestPermit

public void releaseBulkRequestPermit()
Release a permit to process a bulk request.



Copyright © 2011-2012 UnboundID. All Rights Reserved.