|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.ws.management.Message
com.sun.ws.management.soap.SOAP
com.sun.ws.management.addressing.Addressing
com.sun.ws.management.transfer.Transfer
com.sun.ws.management.transfer.TransferExtensions
public class TransferExtensions
Field Summary | |
---|---|
static javax.xml.namespace.QName |
DIALECT
|
static ObjectFactory |
FACTORY
|
static javax.xml.namespace.QName |
FRAGMENT_TRANSFER
|
static javax.xml.namespace.QName |
XML_FRAGMENT
|
Fields inherited from class com.sun.ws.management.transfer.Transfer |
---|
CREATE_ACTION_URI, CREATE_RESPONSE_URI, DELETE_ACTION_URI, DELETE_RESPONSE_URI, FAULT_ACTION_URI, GET_ACTION_URI, GET_RESPONSE_URI, NS_PREFIX, NS_URI, PUT_ACTION_URI, PUT_RESPONSE_URI |
Fields inherited from class com.sun.ws.management.addressing.Addressing |
---|
ACTION, ADDRESS, ANONYMOUS_ENDPOINT_URI, ENDPOINT_REFERENCE, FAULT_TO, FROM, MESSAGE_ID, RELATES_TO, REPLY_TO, RETRY_AFTER, TO, UNSPECIFIED_MESSAGE_ID |
Fields inherited from class com.sun.ws.management.soap.SOAP |
---|
BODY, FALSE, FAULT, MUST_UNDERSTAND, RECEIVER, SENDER, TEXT, TRUE |
Fields inherited from class com.sun.ws.management.Message |
---|
COLON |
Constructor Summary | |
---|---|
TransferExtensions()
|
|
TransferExtensions(Addressing addr)
|
|
TransferExtensions(java.io.InputStream is)
|
Method Summary | |
---|---|
static EndpointReferenceType |
createEndpointReference(java.lang.String address,
java.lang.String resource,
java.util.Map<java.lang.String,java.lang.String> selectorMap)
Utility method to create an EPR. |
static Filter |
createFilter(Transfer request)
Create a Filter from an Enumeration request |
static javax.xml.bind.JAXBElement<MixedDataType> |
createXmlFragment(java.util.List<org.w3c.dom.Node> nodes)
Create a JAXBElement object that is a wsman:XmlFragment from a list of XML Nodes. |
static javax.xml.bind.JAXBElement<MixedDataType> |
createXmlFragment(org.w3c.dom.NodeList nodes)
Create a JAXBElement object that is a wsman:XmlFragment from a NodeList |
java.lang.String |
getFragmentDialect()
Returns the FragmentTransfer Dialect if FragmentTrasfer header exists |
javax.xml.soap.SOAPHeaderElement |
getFragmentHeader()
Returns the FragmentTransfer SOAPElement if it exists |
java.lang.Object |
getResource(javax.xml.namespace.QName element)
|
void |
setCreateResponse(EndpointReferenceType epr)
Handles the Create operation response |
void |
setDeleteResponse()
Handles the Delete operation response |
void |
setFragmentCreateResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader,
EndpointReferenceType epr)
Handles the Fragment Create operation response |
void |
setFragmentCreateResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader,
java.util.List<java.lang.Object> requestContent,
java.lang.String expression,
java.util.List<org.w3c.dom.Node> nodes,
EndpointReferenceType epr)
Deprecated. use setFragmentCreateResponse(SOAPHeaderElement, EndpointReferenceType) |
void |
setFragmentDeleteResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader)
Handles the Fragment Delete operation response |
void |
setFragmentGetResponse(javax.xml.soap.SOAPHeaderElement fragmentTransferHeader,
javax.xml.bind.JAXBElement<MixedDataType> fragment)
Inserts the Fragment-level Get response into the body and adds the FragmentTransfer Header to the SOAP Headers. |
void |
setFragmentGetResponse(javax.xml.soap.SOAPHeaderElement fragmentTransferHeader,
java.util.List<java.lang.Object> content)
Handles the Fragment-level Get response by wrapping the content into an XmlFragment element and adding the FragmentTransfer Header to the SOAP Headers. |
void |
setFragmentGetResponse(javax.xml.soap.SOAPHeaderElement fragmentTransferHeader,
java.lang.Object resource)
Inserts the resource as a Fragment-level Get response into the body and adds the FragmentTransfer Header to the SOAP Headers. |
void |
setFragmentHeader(java.lang.Object expression,
java.util.Map<java.lang.String,java.lang.String> namespaces,
java.lang.String dialect)
Sets the FragmentTransfer header in the message. |
void |
setFragmentHeader(java.lang.Object expression,
java.lang.String dialect)
Sets the FragmentTransfer header in the message. |
void |
setFragmentPutResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader,
java.util.List<java.lang.Object> content)
Inserts the fragment content as a Fragment-level Put response into the body and adds the FragmentTransfer Header to the SOAP Headers. |
void |
setFragmentPutResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader,
java.util.List<java.lang.Object> requestContent,
java.lang.String expression,
java.util.List<org.w3c.dom.Node> nodes)
Deprecated. Use setFragmentPutResponse(SOAPHeaderElement, List) |
void |
setFragmentPutResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader,
java.lang.Object resource)
Inserts the resource as a Fragment-level Put response into the body and adds the FragmentTransfer Header to the SOAP Headers. |
void |
setGetResponse(java.lang.Object resource)
Inserts the resource into the body of the response. |
void |
setPutResponse()
Handles the Put operation response |
void |
setPutResponse(java.lang.Object content)
Handles the Put operation response |
Methods inherited from class com.sun.ws.management.transfer.Transfer |
---|
getResource |
Methods inherited from class com.sun.ws.management.addressing.Addressing |
---|
addHeaders, addHeaders, addRelatesTo, addRelatesTo, createEndpointReference, createReferenceParametersType, createReferencePropertyType, getAction, getEndpointReference, getFaultTo, getFrom, getHeaders, getMessageId, getRelatesTo, getReplyTo, getTo, setAction, setFaultTo, setFaultTo, setFrom, setFrom, setMessageId, setReplyTo, setReplyTo, setTo, unwrapEndpointReference, validate |
Methods inherited from class com.sun.ws.management.soap.SOAP |
---|
createFaultDetail, getAllMustUnderstand, getChildren, getFault, getXmlBinding, setFault, setXmlBinding |
Methods inherited from class com.sun.ws.management.Message |
---|
addNamespaceDeclarations, createElement, getBody, getContentType, getDocumentBuilder, getEnvelope, getHeader, getMessage, newDocument, prettyPrint, setAttribute, setContentType, toString, writeTo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final javax.xml.namespace.QName FRAGMENT_TRANSFER
public static final javax.xml.namespace.QName XML_FRAGMENT
public static final javax.xml.namespace.QName DIALECT
public static final ObjectFactory FACTORY
Constructor Detail |
---|
public TransferExtensions() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public TransferExtensions(Addressing addr) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public TransferExtensions(java.io.InputStream is) throws javax.xml.soap.SOAPException, java.io.IOException
javax.xml.soap.SOAPException
java.io.IOException
Method Detail |
---|
public static EndpointReferenceType createEndpointReference(java.lang.String address, java.lang.String resource, java.util.Map<java.lang.String,java.lang.String> selectorMap)
address
- The transport address of the service.resource
- The resource being addressed.selectorMap
- Selectors used to identify the resource.public javax.xml.soap.SOAPHeaderElement getFragmentHeader() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public java.lang.String getFragmentDialect() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public void setFragmentHeader(java.lang.Object expression, java.lang.String dialect) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
expression
- a filter expression to be applied against the resource.
For the XPath
dialect this should be a string
containing the XPath expression. For other dialects this must be an
object recognized by the marshaller.dialect
- the dialect to be used in filter expressions.
The XPath
dialect
can be used for XPath expressions.
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public void setFragmentHeader(java.lang.Object expression, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String dialect) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
expression
- a filter expression to be applied against the resource.
For the XPath
dialect this should be a string
containing the XPath expression. For other dialects this must be an
object recognized by the marshaller.namespaces
- prefix and namespace map for namespaces used in the filter
expression.dialect
- the dialect to be used in filter expressions.
The XPath
dialect
can be used for XPath expressions.
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public void setGetResponse(java.lang.Object resource) throws javax.xml.bind.JAXBException, javax.xml.soap.SOAPException
resource
- Resource to be returned for this Get. The binding must be
able to marshall this object.
javax.xml.bind.JAXBException
javax.xml.xpath.XPathExpressionException
javax.xml.soap.SOAPException
public void setFragmentGetResponse(javax.xml.soap.SOAPHeaderElement fragmentTransferHeader, java.lang.Object resource) throws javax.xml.bind.JAXBException, javax.xml.soap.SOAPException
fragmentTransferHeader
- The Fragement Transfer Header
to be returned in the headers, if anyresource
- Resource to be returned for this Get. The binding must be
able to marshall this object.
javax.xml.bind.JAXBException
javax.xml.xpath.XPathExpressionException
javax.xml.soap.SOAPException
public void setFragmentGetResponse(javax.xml.soap.SOAPHeaderElement fragmentTransferHeader, javax.xml.bind.JAXBElement<MixedDataType> fragment) throws javax.xml.bind.JAXBException, javax.xml.soap.SOAPException
fragmentTransferHeader
- The Fragement Transfer Header to be returned in the headersfragment
- Fragment object for the response
javax.xml.bind.JAXBException
javax.xml.soap.SOAPException
public void setFragmentGetResponse(javax.xml.soap.SOAPHeaderElement fragmentTransferHeader, java.util.List<java.lang.Object> content) throws javax.xml.bind.JAXBException, javax.xml.soap.SOAPException
fragmentTransferHeader
- The Fragement Transfer Header to be returned in the headerscontent
- A Collection of Objects
javax.xml.bind.JAXBException
javax.xml.soap.SOAPException
public void setDeleteResponse() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public void setFragmentDeleteResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader) throws javax.xml.soap.SOAPException
fragmentHeader
-
javax.xml.soap.SOAPException
public void setPutResponse(java.lang.Object content) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public void setPutResponse() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public void setFragmentPutResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader, java.lang.Object resource) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
fragmentHeader
- the Fragement Transfer Header
to be returned in the headers, if anyresource
- Resource to be returned for this Get. The binding must be
able to marshall this object.
javax.xml.bind.JAXBException
javax.xml.xpath.XPathExpressionException
javax.xml.soap.SOAPException
public void setFragmentPutResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader, java.util.List<java.lang.Object> content) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
fragmentHeader
- the Fragement Transfer Header
to be returned in the headerscontent
- content to be inserted into the XmlFragment
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public void setFragmentPutResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader, java.util.List<java.lang.Object> requestContent, java.lang.String expression, java.util.List<org.w3c.dom.Node> nodes) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
setFragmentPutResponse(SOAPHeaderElement, List)
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public void setCreateResponse(EndpointReferenceType epr) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
epr
- the EndpointReference of the newly created object
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public void setFragmentCreateResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader, EndpointReferenceType epr) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
epr
- the EndpointReference of the newly created object
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public void setFragmentCreateResponse(javax.xml.soap.SOAPHeaderElement fragmentHeader, java.util.List<java.lang.Object> requestContent, java.lang.String expression, java.util.List<org.w3c.dom.Node> nodes, EndpointReferenceType epr) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
setFragmentCreateResponse(SOAPHeaderElement, EndpointReferenceType)
fragmentHeader
- requestContent
- expression
- nodes
- epr
-
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public java.lang.Object getResource(javax.xml.namespace.QName element) throws javax.xml.bind.JAXBException, javax.xml.soap.SOAPException
getResource
in class Transfer
javax.xml.bind.JAXBException
javax.xml.soap.SOAPException
public static Filter createFilter(Transfer request) throws CannotProcessFilterFault, FilteringRequestedUnavailableFault
CannotProcessFilterFault,
- FilteringRequestedUnavailableFault, InternalErrorFault
CannotProcessFilterFault
FilteringRequestedUnavailableFault
public static javax.xml.bind.JAXBElement<MixedDataType> createXmlFragment(java.util.List<org.w3c.dom.Node> nodes)
nodes
- Nodes to be inserted into the XmlFragment element.
public static javax.xml.bind.JAXBElement<MixedDataType> createXmlFragment(org.w3c.dom.NodeList nodes)
nodes
- Nodes to be inserted into the XmlFragment element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |