public class JavascriptQueryHandler extends Object implements StemMatchingQueryHandler
Constructor and Description |
---|
JavascriptQueryHandler(Bus b) |
Modifier and Type | Method and Description |
---|---|
String |
getResponseContentType(String fullQueryString,
String ctx) |
boolean |
isRecognizedQuery(String fullQueryString,
String ctx,
EndpointInfo endpoint) |
boolean |
isRecognizedQuery(String baseUri,
String ctx,
EndpointInfo endpointInfo,
boolean contextMatchExact) |
void |
setBus(Bus b) |
void |
writeResponse(String fullQueryString,
String ctx,
EndpointInfo endpoint,
OutputStream os)
Write query response to output stream
|
static void |
writeUtilsToResponseStream(Class<?> referenceClass,
OutputStream outputStream) |
public JavascriptQueryHandler(Bus b)
public final void setBus(Bus b)
public String getResponseContentType(String fullQueryString, String ctx)
getResponseContentType
in interface QueryHandler
fullQueryString
- the target full query string (with params) of the requestctx
- the context that was set for this invokationpublic boolean isRecognizedQuery(String baseUri, String ctx, EndpointInfo endpointInfo, boolean contextMatchExact)
isRecognizedQuery
in interface StemMatchingQueryHandler
baseUri
- the target full query string (with params) of the requestctx
- the context that was set for this invokationendpointInfo
- the current endpoint for this context (e.g. the endpoint this
Destination was activated for). Null if no current endpoint.contextMatchExact
- true if contextMatchStrategy is "exact"
false otherwisepublic static void writeUtilsToResponseStream(Class<?> referenceClass, OutputStream outputStream)
public void writeResponse(String fullQueryString, String ctx, EndpointInfo endpoint, OutputStream os)
QueryHandler
writeResponse
in interface QueryHandler
fullQueryString
- the target full query string (with params) of the requestctx
- the context that was set for this invokationendpoint
- the current endpoint for this context (e.g. the endpoint this
Destination was activated for). Null if no current endpoint.public boolean isRecognizedQuery(String fullQueryString, String ctx, EndpointInfo endpoint)
isRecognizedQuery
in interface QueryHandler
fullQueryString
- the target full query string (with params) of the requestctx
- the context that was set for this invokationendpoint
- the current endpoint for this context (e.g. the endpoint this
Destination was activated for). Null if no current endpoint.Apache CXF