public class SearchProxy
extends org.springframework.extensions.webscripts.AbstractWebScript
implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected org.springframework.extensions.config.ConfigService |
configService |
protected org.springframework.extensions.webscripts.FormatRegistry |
formatRegistry |
protected String |
proxyPath |
protected OpenSearchConfigElement |
searchConfig |
Constructor and Description |
---|
SearchProxy() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
createUrl(OpenSearchConfigElement.EngineConfig engine,
String mimetype)
Construct a "proxied" search engine url
|
String |
createUrl(String engine,
String url,
String mimetype)
Construct a "proxied" search engine url
|
void |
execute(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.WebScriptResponse res) |
void |
setConfigService(org.springframework.extensions.config.ConfigService configService) |
void |
setFormatRegistry(org.springframework.extensions.webscripts.FormatRegistry formatRegistry) |
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
protected org.springframework.extensions.webscripts.FormatRegistry formatRegistry
protected org.springframework.extensions.config.ConfigService configService
protected OpenSearchConfigElement searchConfig
protected String proxyPath
public void setFormatRegistry(org.springframework.extensions.webscripts.FormatRegistry formatRegistry)
formatRegistry
- FormatRegistrypublic void setConfigService(org.springframework.extensions.config.ConfigService configService)
configService
- ConfigServicepublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
execute
in interface org.springframework.extensions.webscripts.WebScript
IOException
public String createUrl(OpenSearchConfigElement.EngineConfig engine, String mimetype)
engine
- engine name (as identified by mimetype
- url to proxy (as identified by mimetype)Copyright © 2005–2017 Alfresco Software. All rights reserved.