org.apache.cxf.javascript
Class JavascriptQueryHandler
java.lang.Object
org.apache.cxf.javascript.JavascriptQueryHandler
- All Implemented Interfaces:
- QueryHandler, StemMatchingQueryHandler
public class JavascriptQueryHandler
- extends java.lang.Object
- implements StemMatchingQueryHandler
Method Summary |
java.lang.String |
getResponseContentType(java.lang.String fullQueryString,
java.lang.String ctx)
|
boolean |
isRecognizedQuery(java.lang.String fullQueryString,
java.lang.String ctx,
EndpointInfo endpoint)
|
boolean |
isRecognizedQuery(java.lang.String baseUri,
java.lang.String ctx,
EndpointInfo endpointInfo,
boolean contextMatchExact)
|
void |
writeResponse(java.lang.String fullQueryString,
java.lang.String ctx,
EndpointInfo endpoint,
java.io.OutputStream os)
Write query response to output stream |
static void |
writeUtilsToResponseStream(java.lang.Class<?> referenceClass,
java.io.OutputStream outputStream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavascriptQueryHandler
public JavascriptQueryHandler(Bus b)
getResponseContentType
public java.lang.String getResponseContentType(java.lang.String fullQueryString,
java.lang.String ctx)
- Specified by:
getResponseContentType
in interface QueryHandler
- Parameters:
fullQueryString
- the target full query string (with params) of the requestctx
- the context that was set for this invokation
- Returns:
- the content-type for the response
isRecognizedQuery
public boolean isRecognizedQuery(java.lang.String baseUri,
java.lang.String ctx,
EndpointInfo endpointInfo,
boolean contextMatchExact)
- Specified by:
isRecognizedQuery
in interface StemMatchingQueryHandler
- Parameters:
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 otherwise
- Returns:
- true iff the URI is a recognized WSDL query
writeUtilsToResponseStream
public static void writeUtilsToResponseStream(java.lang.Class<?> referenceClass,
java.io.OutputStream outputStream)
writeResponse
public void writeResponse(java.lang.String fullQueryString,
java.lang.String ctx,
EndpointInfo endpoint,
java.io.OutputStream os)
- Description copied from interface:
QueryHandler
- Write query response to output stream
- Specified by:
writeResponse
in interface QueryHandler
- Parameters:
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.
isRecognizedQuery
public boolean isRecognizedQuery(java.lang.String fullQueryString,
java.lang.String ctx,
EndpointInfo endpoint)
- Specified by:
isRecognizedQuery
in interface QueryHandler
- Parameters:
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.
- Returns:
- true iff the URI is a recognized WSDL query
Apache CXF