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 java.lang.String |
proxyPath |
protected OpenSearchConfigElement |
searchConfig |
Constructor and Description |
---|
SearchProxy() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.lang.String |
createUrl(OpenSearchConfigElement.EngineConfig engine,
java.lang.String mimetype)
Construct a "proxied" search engine url
|
java.lang.String |
createUrl(java.lang.String engine,
java.lang.String url,
java.lang.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 java.lang.String proxyPath
public void setFormatRegistry(org.springframework.extensions.webscripts.FormatRegistry formatRegistry)
formatRegistry
- public void setConfigService(org.springframework.extensions.config.ConfigService configService)
configService
- public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws java.io.IOException
execute
in interface org.springframework.extensions.webscripts.WebScript
java.io.IOException
public java.lang.String createUrl(OpenSearchConfigElement.EngineConfig engine, java.lang.String mimetype)
engine
- engine name (as identified by mimetype
- url to proxy (as identified by mimetype)public java.lang.String createUrl(java.lang.String engine, java.lang.String url, java.lang.String mimetype)
engine
- engine name (as identified by url
- engine urlmimetype
- mimetype of urlCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.