org.exoplatform.services.rest
Class ResourceDispatcher.Context

java.lang.Object
  extended by org.exoplatform.services.rest.ResourceDispatcher.Context
Enclosing class:
ResourceDispatcher

public class ResourceDispatcher.Context
extends Object

Keep runtime context and later it can be used for getting some runtime information in ResourceContainer. For example full URL to the requested resource.


Method Summary
 String createAbsLocation(String additionalPath)
          Deprecated. 
 String getAbsLocation()
          Deprecated. 
 String getContextHref()
          Deprecated. Instead this method use @ContextParam(ResourceDispatcher.CONTEXT_PARAM_BASE_URI).
 String getServerName()
          Deprecated. Instead this method use @ContextParam(ResourceDispatcher.CONTEXT_PARAM_HOST).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServerName

@Deprecated
public String getServerName()
Deprecated. Instead this method use @ContextParam(ResourceDispatcher.CONTEXT_PARAM_HOST).

Returns:
the host name.

getContextHref

@Deprecated
public String getContextHref()
Deprecated. Instead this method use @ContextParam(ResourceDispatcher.CONTEXT_PARAM_BASE_URI).

Returns:
the baseURI.

getAbsLocation

@Deprecated
public String getAbsLocation()
Deprecated. 

Return absolute location to the requested resource.

Returns:
the absolute location.

createAbsLocation

@Deprecated
public String createAbsLocation(String additionalPath)
Deprecated. 

Add additional path to absolute location and return result.

Parameters:
additionalPath - the additional path.
Returns:
absolute location.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.