Package com.yahoo.application
Class Application.Builder
java.lang.Object
com.yahoo.application.Application.Builder
- Enclosing class:
- Application
A wrapper around ApplicationBuilder that generates a services.xml
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()container(String id, Application.Builder.Container container) documentType(String name, String schema) expressionInclude(String name, String schema) networking(Networking networking) queryProfile(String name, String queryProfile) queryProfileType(String name, String queryProfileType) rankExpression(String name, String rankingExpressionContent)
-
Constructor Details
-
Builder
- Throws:
IOException
-
-
Method Details
-
container
-
documentType
- Parameters:
name- name of document type (search definition)schema- add this search definition to the application- Throws:
IOException- e.g.if file not found
-
expressionInclude
- Throws:
IOException
-
rankExpression
public Application.Builder rankExpression(String name, String rankingExpressionContent) throws IOException - Parameters:
name- name of ranking expressionrankingExpressionContent- add this ranking expression to the application- Throws:
IOException- e.g.if file not found
-
queryProfile
- Parameters:
name- name of query profilequeryProfile- add this query profile to the application- Returns:
- builder
- Throws:
IOException- e.g.if file not found
-
queryProfileType
public Application.Builder queryProfileType(String name, String queryProfileType) throws IOException - Parameters:
name- name of query profile typequeryProfileType- add this query profile type to the application- Returns:
- builder
- Throws:
IOException- e.g.if file not found
-
networking
- Parameters:
networking- enable or disable networking (disabled by default)- Returns:
- builder
-
build
- Throws:
Exception
-