Package org.apache.axiom.ts.xml
Class MessageSample
- java.lang.Object
-
- org.apache.axiom.testing.multiton.Multiton
-
- org.apache.axiom.ts.xml.MessageSample
-
- Direct Known Subclasses:
MIMESample,XMLSample
public abstract class MessageSample extends org.apache.axiom.testing.multiton.Multiton
-
-
Constructor Summary
Constructors Constructor Description MessageSample(MessageContent content, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetContentType()InputStreamgetInputStream()Get the content of this message.StringgetName()Get the name of this message (for use in test case naming e.g.).URLgetUrl()
-
-
-
Constructor Detail
-
MessageSample
public MessageSample(MessageContent content, String name)
-
-
Method Detail
-
getContentType
public abstract String getContentType()
-
getName
public final String getName()
Get the name of this message (for use in test case naming e.g.).- Returns:
- the name of this test message
-
getInputStream
public final InputStream getInputStream()
Get the content of this message.- Returns:
- an input stream with the content of this message
-
getUrl
public final URL getUrl()
-
-