Interface ContentType
-
- All Known Subinterfaces:
ContentType
- All Known Implementing Classes:
ContentTypeImpl
public interface ContentTypeA Content-Type transport header that will be returned byMessageContext.writeTo(java.io.OutputStream). It will provide the Content-Type header and also take care of SOAP 1.1 SOAPAction header.- Author:
- Vivek Pandey
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContentType.Builder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAcceptHeader()Controls the Accept transport header, if the transport supports it.StringgetContentType()Gives non-null Content-Type header value.StringgetSOAPActionHeader()Gives SOAPAction transport header value.
-
-
-
Method Detail
-
getContentType
String getContentType()
Gives non-null Content-Type header value.
-
getSOAPActionHeader
String getSOAPActionHeader()
Gives SOAPAction transport header value. It will be non-null only for SOAP 1.1 messages. In other cases it MUST be null. The SOAPAction transport header should be written out only when its non-null.- Returns:
- It can be null, in that case SOAPAction header should be written.
-
getAcceptHeader
String getAcceptHeader()
Controls the Accept transport header, if the transport supports it. Returning null means the transport need not add any new header.We realize that this is not an elegant abstraction, but this would do for now. If another person comes and asks for a similar functionality, we'll define a real abstraction.
-
-