|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.mex.client.MetadataClient
public class MetadataClient
Class used for retrieving metadata at runtime. The intended usage is:
MetadataClient mClient = new MetadataClient();
Metadata mData = mClient.retrieveMetadata(someAddress);
Utility methods will be added for common usages of the metadata. For instance, the service and port QNames from the endpoint can be retrieved from the metadata with:
Map<QName, List<PortInfo>> names = mClient.getServiceAndPortNames(mData);
Constructor Summary | |
---|---|
MetadataClient()
Default constructor. |
Method Summary | |
---|---|
java.util.List<PortInfo> |
getServiceInformation(Metadata data)
Used to retrieve the service and port names and port addresses from metadata. |
Metadata |
retrieveMetadata(MetadataReference reference)
Currently only supports Get requests (not Get Metadata), so we only need the reference's address. |
Metadata |
retrieveMetadata(java.lang.String address)
Method used to load the metadata from the endpoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataClient()
Method Detail |
---|
public Metadata retrieveMetadata(@NotNull java.lang.String address)
If any wsdl or schema import elements are found with empty location attributes, these attributes are removed. In the case of data returned to JAX-WS through ServiceDescriptorImpl, these attributes are added back in with appropriate location information.
address
- The address used to query for Metadata
ServiceDescriptorImpl
public Metadata retrieveMetadata(@NotNull MetadataReference reference)
retrieveMetadata(String)
public java.util.List<PortInfo> getServiceInformation(@NotNull Metadata data)
PortInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |