Skip to content
JM.PASCAL edited this page Feb 25, 2015 · 4 revisions

##Extending Android SDK

###Entry Points

####HTTP Request

  • AlfrescoSession.HTTP_ACCEPT_ENCODING
  • AlfrescoSession.HTTP_ACCEPT_LANGUAGE
  • AlfrescoSession.HTTP_CHUNK_TRANSFERT
  • AlfrescoSession.HTTP_INVOKER_CLASSNAME

####Services

  • AlfrescoSession.ONPREMISE_SERVICES_CLASSNAME
  • AlfrescoSession.CLOUD_SERVICES_CLASSNAME
  • AlfrescoSession.AUTHENTICATOR_CLASSNAME

###Snippet Create an OnPremise Alfresco Session + define a custom ServiceRegistry :

HashMap<String, Serializable> settings = new HashMap<String, Serializable>(1);
settings.put(AlfrescoSession.ONPREMISE_SERVICES_CLASSNAME, "custom.package.name.of.your.custom.service.registry.CustomServiceRegistry" );
RepositorySession session = RepositorySession.connect("http://hostname:port/alfresco", "username", "password", settings);
CustomServiceRegistry serviceRegistry = (CustomServiceRegistry)session.getServiceRegistry();
CustomService service = serviceRegistry.getCustomService();

More information

Clone this wiki locally