fr.cnes.sitools.applications
Class PublicApplication

java.lang.Object
  extended by ExtendedWadlApplication
      extended by fr.cnes.sitools.common.application.SitoolsApplication
          extended by fr.cnes.sitools.common.application.StaticWebApplication
              extended by fr.cnes.sitools.applications.PublicApplication

public final class PublicApplication
extends StaticWebApplication

PublicApplication to expose commons files and cots.

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
PublicApplication(org.restlet.Context context, java.lang.String appPath, java.lang.String baseUrl)
          Constructor.
 
Method Summary
 org.restlet.Restlet createInboundRoot()
           
 org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request, org.restlet.Response response)
           
 ChallengeToken getChallengeToken()
          Gets the challengeToken value
 java.lang.String getResetPasswordIndexUrl()
          Gets the resetPasswordIndexUrl value
 void sitoolsDescribe()
          Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.
 
Methods inherited from class fr.cnes.sitools.common.application.StaticWebApplication
getAppPath, getBaseUrl
 
Methods inherited from class fr.cnes.sitools.common.application.SitoolsApplication
addSecurity, addSecurity, addSecurityFilter, defaultDescribe, getAttachementRef, getAuthenticationRealm, getAuthorizer, getAuthorizer, getAuthorizer, getCategory, getId, getPublicBaseRef, getRepresentationInfoReferences, getSecure, getSettings, getSitoolsApplicationInfo, getType, getUserAuthorizer, isAuthorizationSecure, isUserAuthenticationNeeded, register, setAutoRegistration, setCategory, setId, setSitoolsApplicationInfo, setType, setUserAuthenticationNeeded, start, stop, unregister, wrapToResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicApplication

public PublicApplication(org.restlet.Context context,
                         java.lang.String appPath,
                         java.lang.String baseUrl)
                  throws SitoolsException
Constructor.

Parameters:
context - Restlet Context
appPath - location of Directory to be exposed
baseUrl - public URL for listing files of Directory
Throws:
SitoolsException - if the challengeToken is null
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: SitoolsApplication
Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.

Specified by:
sitoolsDescribe in class SitoolsApplication

createInboundRoot

public org.restlet.Restlet createInboundRoot()
Overrides:
createInboundRoot in class StaticWebApplication

getApplicationInfo

public org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request,
                                                               org.restlet.Response response)
Overrides:
getApplicationInfo in class SitoolsApplication

getChallengeToken

public ChallengeToken getChallengeToken()
Gets the challengeToken value

Returns:
the challengeToken

getResetPasswordIndexUrl

public java.lang.String getResetPasswordIndexUrl()
Gets the resetPasswordIndexUrl value

Returns:
the resetPasswordIndexUrl


Copyright © 2010-2013 CNES. All Rights Reserved.