edu.internet2.middleware.ldappc.util
Class PSPUtil
java.lang.Object
edu.internet2.middleware.ldappc.util.PSPUtil
public class PSPUtil
- extends Object
|
Field Summary |
static String |
TIMESTAMP_FORMAT
Time stamp part of default requestID format : yyyyMMdd HH:mm:ss.SSS |
|
Method Summary |
static org.springframework.context.support.GenericApplicationContext |
createSpringContext(List<org.opensaml.util.resource.Resource> resources)
|
static org.springframework.context.support.GenericApplicationContext |
createSpringContext(String... configs)
|
static org.openspml.v2.msg.spml.CapabilityData |
fromReferences(Collection<org.openspml.v2.msg.spmlref.Reference> references)
|
static List<org.opensaml.util.resource.Resource> |
getResources(String path,
String... resourceNames)
Returns Resources with the given names. |
static int |
getScope(org.openspml.v2.msg.spmlsearch.Scope scope)
Return SearchControls search scope from an SPML Scope. |
static String |
getString(Object object)
|
static org.openspml.v2.msg.spml.CapabilityData |
setReferences(org.openspml.v2.msg.spml.PSO pso,
Collection<org.openspml.v2.msg.spmlref.Reference> references)
|
static String |
toString(org.openspml.v2.msg.spml.AddRequest addRequest)
|
static String |
toString(org.openspml.v2.msg.spml.AddResponse addResponse)
|
static String |
toString(org.openspml.v2.msg.spml.DeleteRequest deleteRequest)
|
static String |
toString(org.openspml.v2.profiles.dsml.DSMLModification dsmlModification)
|
static String |
toString(org.openspml.v2.msg.spml.LookupRequest lookupRequest)
|
static String |
toString(org.openspml.v2.msg.spml.LookupResponse lookupResponse)
|
static String |
toString(org.openspml.v2.msg.spml.ModifyRequest modifyRequest)
|
static String |
toString(org.openspml.v2.msg.spml.ModifyResponse modifyResponse)
|
static String |
toString(org.openspml.v2.msg.spml.PSO pso)
|
static String |
toString(org.openspml.v2.msg.spml.PSOIdentifier psoIdentifier)
|
static String |
toString(org.openspml.v2.msg.spmlsearch.Query query)
|
static String |
toString(org.openspml.v2.msg.spmlref.Reference reference)
|
static String |
toString(org.openspml.v2.msg.spml.Request request)
|
static String |
toString(org.openspml.v2.msg.spml.Response response)
|
static String |
toString(org.openspml.v2.msg.spml.SchemaEntityRef schemaEntityRef)
|
static String |
toString(org.openspml.v2.msg.spmlsearch.SearchRequest searchRequest)
|
static String |
toString(org.openspml.v2.msg.spmlsearch.SearchResponse searchResponse)
|
static String |
uniqueRequestId()
Get a reasonably unique string for use as an SPML requestID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIMESTAMP_FORMAT
public static final String TIMESTAMP_FORMAT
- Time stamp part of default requestID format : yyyyMMdd HH:mm:ss.SSS
- See Also:
- Constant Field Values
PSPUtil
public PSPUtil()
createSpringContext
public static org.springframework.context.support.GenericApplicationContext createSpringContext(List<org.opensaml.util.resource.Resource> resources)
throws org.opensaml.util.resource.ResourceException
- Throws:
org.opensaml.util.resource.ResourceException
createSpringContext
public static org.springframework.context.support.GenericApplicationContext createSpringContext(String... configs)
throws org.opensaml.util.resource.ResourceException
- Throws:
org.opensaml.util.resource.ResourceException
fromReferences
public static org.openspml.v2.msg.spml.CapabilityData fromReferences(Collection<org.openspml.v2.msg.spmlref.Reference> references)
throws org.openspml.v2.util.Spml2Exception
- Throws:
org.openspml.v2.util.Spml2Exception
getResources
public static List<org.opensaml.util.resource.Resource> getResources(String path,
String... resourceNames)
throws org.opensaml.util.resource.ResourceException
- Returns
Resources with the given names. If the path is null,
resources will be found using the classpath.
- Parameters:
path - the directory containing resourcesresourceNames - the names of the resource files
- Returns:
- the resources
- Throws:
org.opensaml.util.resource.ResourceException - if an error occurs loading the resource
IllegalArgumentException - if the resources are not files or are not readable
getScope
public static int getScope(org.openspml.v2.msg.spmlsearch.Scope scope)
- Return
SearchControls search scope from an SPML Scope.
- Parameters:
scope - the SPML scope
- Returns:
- the javax.naming.directory search scope as an int
getString
public static String getString(Object object)
setReferences
public static org.openspml.v2.msg.spml.CapabilityData setReferences(org.openspml.v2.msg.spml.PSO pso,
Collection<org.openspml.v2.msg.spmlref.Reference> references)
throws org.openspml.v2.util.Spml2Exception
- Throws:
org.openspml.v2.util.Spml2Exception
toString
public static String toString(org.openspml.v2.msg.spml.AddRequest addRequest)
toString
public static String toString(org.openspml.v2.msg.spml.AddResponse addResponse)
toString
public static String toString(org.openspml.v2.msg.spml.DeleteRequest deleteRequest)
toString
public static String toString(org.openspml.v2.profiles.dsml.DSMLModification dsmlModification)
toString
public static String toString(org.openspml.v2.msg.spml.LookupRequest lookupRequest)
toString
public static String toString(org.openspml.v2.msg.spml.LookupResponse lookupResponse)
toString
public static String toString(org.openspml.v2.msg.spml.ModifyRequest modifyRequest)
toString
public static String toString(org.openspml.v2.msg.spml.ModifyResponse modifyResponse)
toString
public static String toString(org.openspml.v2.msg.spml.PSO pso)
toString
public static String toString(org.openspml.v2.msg.spml.PSOIdentifier psoIdentifier)
toString
public static String toString(org.openspml.v2.msg.spmlsearch.Query query)
toString
public static String toString(org.openspml.v2.msg.spmlref.Reference reference)
toString
public static String toString(org.openspml.v2.msg.spml.Request request)
toString
public static String toString(org.openspml.v2.msg.spml.Response response)
toString
public static String toString(org.openspml.v2.msg.spmlsearch.SearchRequest searchRequest)
toString
public static String toString(org.openspml.v2.msg.spmlsearch.SearchResponse searchResponse)
toString
public static String toString(org.openspml.v2.msg.spml.SchemaEntityRef schemaEntityRef)
uniqueRequestId
public static String uniqueRequestId()
- Get a reasonably unique string for use as an SPML requestID.
see
GrouperUtil.uniqueId()
- Returns:
- String of the form yyyy/MM/dd-HH:mm:ss.SSS_XXXXXXXX
Copyright © 2011 Internet2. All Rights Reserved.