|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.api.model.ParameterBinding
public final class ParameterBinding
Denotes the binding of a parameter.
This is somewhat like an enumeration (but it is NOT an enumeration.)
The possible values are BODY, HEADER, UNBOUND, and ATTACHMENT. BODY, HEADER, and UNBOUND has a singleton semantics, but there are multiple ATTACHMENT instances as it carries additional MIME type parameter.
So don't use '==' for testing the equality.
Nested Class Summary | |
---|---|
static class |
ParameterBinding.Kind
Represents 4 kinds of binding. |
Field Summary | |
---|---|
static ParameterBinding |
BODY
Singleton instance that represents 'BODY' |
static ParameterBinding |
HEADER
Singleton instance that represents 'HEADER' |
ParameterBinding.Kind |
kind
Represents the kind of ParameterBinding . |
static ParameterBinding |
UNBOUND
Singleton instance that represents 'UNBOUND', meaning the parameter doesn't have a representation in a SOAP message. |
Method Summary | |
---|---|
static ParameterBinding |
createAttachment(String mimeType)
Creates an instance that represents the attachment with a given MIME type. |
String |
getMimeType()
Returns the MIME type associated with this binding. |
boolean |
isAttachment()
|
boolean |
isBody()
|
boolean |
isHeader()
|
boolean |
isUnbound()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ParameterBinding BODY
public static final ParameterBinding HEADER
public static final ParameterBinding UNBOUND
public final ParameterBinding.Kind kind
ParameterBinding
.
Always non-null.
Method Detail |
---|
public static ParameterBinding createAttachment(String mimeType)
TODO: shall we consider givint the singleton semantics by using
a cache? It's more elegant to do so, but
no where in JAX-WS RI two ParameterBinding
s are compared today,
public String toString()
toString
in class Object
public String getMimeType()
IllegalStateException
- if this binding doesn't represent an attachment.
IOW, if isAttachment()
returns false.public boolean isBody()
public boolean isHeader()
public boolean isUnbound()
public boolean isAttachment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |