public class RedirectControllableEntityProviderMock extends RESTfulEntityProviderMock implements org.sakaiproject.entitybroker.entityprovider.CoreEntityProvider, org.sakaiproject.entitybroker.entityprovider.capabilities.RESTful, org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectControllable
RedirectControllable capabilities, will perform like the
actual class so it can be reliably used for testingCRUDable operations as well as allowing for internal data output processingMyEntity objectsResolvable and CollectionResolvable as well, returns 2 MyEntity objects
if no search restrictions, 1 if "stuff" property is set, none if other properties are set| Modifier and Type | Field and Description |
|---|---|
String[] |
templates |
myEntitiesprefixSEARCH_LOCATION_REFERENCE, SEARCH_TAGS, SEARCH_USER_REFERENCEALL_KNOWN_FORMATS, ATOM, ATOM_EXTENSIONS, ATOM_MIME_TYPE, FORM, FORM_EXTENSIONS, FORM_MIME_TYPE, HTML, HTML_EXTENSIONS, HTML_MIME_TYPE, JSON, JSON_EXTENSIONS, JSON_MIME_TYPE, JSONP, JSONP_EXTENSIONS, JSONP_MIME_TYPE, RSS, RSS_EXTENSIONS, RSS_MIME_TYPE, TXT, TXT_EXTENSIONS, TXT_MIME_TYPE, UTF_8, XML, XML_EXTENSIONS, XML_MIME_TYPE| Constructor and Description |
|---|
RedirectControllableEntityProviderMock(String prefix,
String[] ids) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
defineHandledTemplatePatterns() |
String |
handleRedirects(String matchedTemplate,
String incomingURL,
String[] incomingSegments,
Map<String,String> values) |
String |
neverRedirector(String incomingURL,
Map<String,String> values) |
String |
returningRedirector(String incomingURL,
Map<String,String> values) |
getHandledInputFormats, getHandledOutputFormatscreateEntity, deleteEntity, entityExists, getEntities, getEntity, getSampleEntity, updateEntitygetEntityPrefixclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentityExistscreateEntitygetSampleEntityupdateEntitygetEntitygetEntityPrefixdeleteEntitygetEntitiespublic String[] templates
public String[] defineHandledTemplatePatterns()
defineHandledTemplatePatterns in interface org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectControllablepublic String handleRedirects(String matchedTemplate, String incomingURL, String[] incomingSegments, Map<String,String> values)
handleRedirects in interface org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectControllablepublic String returningRedirector(String incomingURL, Map<String,String> values)
Copyright © 2007-2015 Sakai Project. All Rights Reserved.