org.apache.cxf.transport.http
Class WSDLQueryHandler
java.lang.Object
org.apache.cxf.transport.http.WSDLQueryHandler
- All Implemented Interfaces:
- QueryHandler, StemMatchingQueryHandler
public class WSDLQueryHandler
- extends Object
- implements StemMatchingQueryHandler
Method Summary |
String |
getResponseContentType(String baseUri,
String ctx)
|
boolean |
isRecognizedQuery(String baseUri,
String ctx,
EndpointInfo endpointInfo)
|
boolean |
isRecognizedQuery(String baseUri,
String ctx,
EndpointInfo endpointInfo,
boolean contextMatchExact)
|
void |
setBus(Bus bus)
|
protected void |
updateDefinition(javax.wsdl.Definition def,
Map<String,javax.wsdl.Definition> done,
Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas,
String base,
EndpointInfo ei)
|
protected void |
updateDoc(Document doc,
String base,
Map<String,javax.wsdl.Definition> mp,
Map<String,javax.wsdl.extensions.schema.SchemaReference> smp,
EndpointInfo ei)
|
protected void |
updatePublishedEndpointUrl(String publishingUrl,
javax.wsdl.Definition def,
QName name)
|
protected void |
updateSchemaImports(javax.wsdl.extensions.schema.Schema schema,
Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas,
String base)
|
void |
writeResponse(String baseUri,
String ctxUri,
EndpointInfo endpointInfo,
OutputStream os)
Write query response to output stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSDLQueryHandler
public WSDLQueryHandler()
WSDLQueryHandler
public WSDLQueryHandler(Bus b)
getResponseContentType
public String getResponseContentType(String baseUri,
String ctx)
- Specified by:
getResponseContentType
in interface QueryHandler
- Parameters:
baseUri
- 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(String baseUri,
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
writeResponse
public void writeResponse(String baseUri,
String ctxUri,
EndpointInfo endpointInfo,
OutputStream os)
- Description copied from interface:
QueryHandler
- Write query response to output stream
- Specified by:
writeResponse
in interface QueryHandler
- Parameters:
baseUri
- the target full query string (with params) of the requestctxUri
- 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.
updateDoc
protected void updateDoc(Document doc,
String base,
Map<String,javax.wsdl.Definition> mp,
Map<String,javax.wsdl.extensions.schema.SchemaReference> smp,
EndpointInfo ei)
updateDefinition
protected void updateDefinition(javax.wsdl.Definition def,
Map<String,javax.wsdl.Definition> done,
Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas,
String base,
EndpointInfo ei)
updatePublishedEndpointUrl
protected void updatePublishedEndpointUrl(String publishingUrl,
javax.wsdl.Definition def,
QName name)
updateSchemaImports
protected void updateSchemaImports(javax.wsdl.extensions.schema.Schema schema,
Map<String,javax.wsdl.extensions.schema.SchemaReference> doneSchemas,
String base)
isRecognizedQuery
public boolean isRecognizedQuery(String baseUri,
String ctx,
EndpointInfo endpointInfo)
- Specified by:
isRecognizedQuery
in interface QueryHandler
- 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.
- Returns:
- true iff the URI is a recognized WSDL query
setBus
public void setBus(Bus bus)
Apache CXF