org.apache.archiva.web.api
Class DefaultRuntimeInfoService

java.lang.Object
  extended by org.apache.archiva.web.api.DefaultRuntimeInfoService
All Implemented Interfaces:
RuntimeInfoService

@Service(value="runtimeInfoService#rest")
public class DefaultRuntimeInfoService
extends Object
implements RuntimeInfoService

Author:
Olivier Lamy

Field Summary
private  ArchivaRuntimeInfo archivaRuntimeInfo
           
protected  javax.servlet.http.HttpServletRequest httpServletRequest
           
private  org.slf4j.Logger i18nLogger
           
private  RedbackRuntimeConfigurationService redbackRuntimeConfigurationService
           
 
Constructor Summary
DefaultRuntimeInfoService(ArchivaRuntimeInfo archivaRuntimeInfo)
           
 
Method Summary
 ApplicationRuntimeInfo getApplicationRuntimeInfo(String locale)
           
protected  String getBaseUrl(javax.servlet.http.HttpServletRequest req)
           
 Boolean logMissingI18n(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i18nLogger

private org.slf4j.Logger i18nLogger

archivaRuntimeInfo

private ArchivaRuntimeInfo archivaRuntimeInfo

redbackRuntimeConfigurationService

@Inject
private RedbackRuntimeConfigurationService redbackRuntimeConfigurationService

httpServletRequest

@Context
protected javax.servlet.http.HttpServletRequest httpServletRequest
Constructor Detail

DefaultRuntimeInfoService

@Inject
public DefaultRuntimeInfoService(ArchivaRuntimeInfo archivaRuntimeInfo)
Method Detail

getApplicationRuntimeInfo

public ApplicationRuntimeInfo getApplicationRuntimeInfo(String locale)
                                                 throws ArchivaRestServiceException
Specified by:
getApplicationRuntimeInfo in interface RuntimeInfoService
Throws:
ArchivaRestServiceException

getBaseUrl

protected String getBaseUrl(javax.servlet.http.HttpServletRequest req)

logMissingI18n

public Boolean logMissingI18n(String key)
Specified by:
logMissingI18n in interface RuntimeInfoService


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.