|
JXTA | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MimeMediaType | |
---|---|
net.jxta.credential | Credentials provide the basic mechanisms for securly establishing and communicating identity within JXTA. |
net.jxta.document | JXTA Documents are containers for both structured and unstructured data. |
net.jxta.endpoint | Provides interfaces and classes used for the addressing, filtering, sending, and receiving of messages within JXTA. |
net.jxta.protocol | Provides inteface objects for Advertisments and protocol messages for the JXTA Core and Standard Protocols. |
Uses of MimeMediaType in net.jxta.credential |
---|
Methods in net.jxta.credential with parameters of type MimeMediaType | |
---|---|
StructuredDocument |
Credential.getDocument(MimeMediaType asMimeType)
Write credential into a document. |
StructuredDocument |
AuthenticationCredential.getDocument(MimeMediaType as)
Write credential into a document. as is a mime media-type specification and provides the form of the document which is being requested. |
Uses of MimeMediaType in net.jxta.document |
---|
Fields in net.jxta.document declared as MimeMediaType | |
---|---|
static MimeMediaType |
MimeMediaType.AOS
Common Mime Media Type for arbitrary unparsed binary data. |
static MimeMediaType |
MimeMediaType.APPLICATION_XML_DEFAULTENCODING
Common Mime Media Type for XML encoded using the default character encoding for this JVM. |
static MimeMediaType |
MimeMediaType.TEXT_DEFAULTENCODING
Common Mime Media Type for text encoded using the default character encoding for this JVM. |
static MimeMediaType |
MimeMediaType.TEXTUTF8
Common Mime Media Type for plain text encoded as UTF-8 characters. |
static MimeMediaType |
MimeMediaType.XML_DEFAULTENCODING
Common Mime Media Type for XML encoded using the default character encoding for this JVM. |
static MimeMediaType |
MimeMediaType.XMLUTF8
Common Mime Media Type for XML encoded as UTF-8 characters. |
Methods in net.jxta.document that return MimeMediaType | |
---|---|
MimeMediaType |
MimeMediaType.getBaseMimeMediaType()
Returns the "base" MIME media type of this type. ie. with no parameters. |
MimeMediaType |
StructuredDocumentFactory.Instantiator.ExtensionMapping.getMimeMediaType()
Returns the MIME Media Type which is part of this mapping. |
MimeMediaType |
BinaryDocument.getMimeType()
Returns the MIME Media type of this Document per
IETF RFC 2046 MIME : Media Types. |
MimeMediaType |
Document.getMimeType()
Returns the MIME Media type of this Document per
IETF RFC 2046 MIME : Media Types. |
MimeMediaType |
FileDocument.getMimeType()
Returns the MIME Media type of this Document per
IETF RFC 2046 MIME : Media Types. |
static MimeMediaType |
StructuredDocumentFactory.getMimeTypeForFileExtension(String extension)
Returns the preferred mime-type for a given file extension. |
static MimeMediaType[] |
BinaryDocument.getSupportedMimeTypes()
Returns the MIME Media types supported by this this Document per IETF RFC 2046 MIME : Media Types. |
MimeMediaType[] |
StructuredDocumentFactory.Instantiator.getSupportedMimeTypes()
Returns the MIME Media types supported by this this Document per IETF RFC 2046 MIME : Media Types. |
MimeMediaType |
MimeMediaType.intern()
Returns a canonical representation for the MimeMediaType object. |
static MimeMediaType |
MimeMediaType.valueOf(String mimetype)
Returns a MimeMediaType with a value represented by the specified String. |
Methods in net.jxta.document that return types with arguments of type MimeMediaType | |
---|---|
protected Map<MimeMediaType,StructuredDocumentFactory.Instantiator> |
StructuredDocumentFactory.getAssocTable()
Used by ClassFactory methods to get the mapping of keys to constructors. |
protected Class<MimeMediaType> |
StructuredDocumentFactory.getClassForKey()
Used by ClassFactory methods to ensure that all keys used with the mapping are of the correct type. |
Methods in net.jxta.document with parameters of type MimeMediaType | |
---|---|
Document |
ExtendableAdvertisement.getDocument(MimeMediaType encodeAs)
Write this advertisement into a document of the requested type. |
abstract Document |
Advertisement.getDocument(MimeMediaType asMimeType)
Write this advertisement into a document of the requested type. |
static String |
StructuredDocumentFactory.getFileExtensionForMimeType(MimeMediaType mimetype)
Returns the preferred extension for a given mime-type. |
static Advertisement |
AdvertisementFactory.newAdvertisement(MimeMediaType mimetype,
InputStream stream)
Deprecated. Please convert your code to construct an XMLDocument
using StructuredDocumentFactory and then call
AdvertisementFactory.newAdvertisement(XMLElement) . For example :
XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( MimeMediaType.XMLUTF8, is );or frequently: XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( msgElement );followed by: Advertisement adv = AdvertisementFactory.newAdvertisement(xml); |
static Advertisement |
AdvertisementFactory.newAdvertisement(MimeMediaType mimetype,
Reader source)
Deprecated. Please convert your code to construct an XMLDocument
using StructuredDocumentFactory and then call
AdvertisementFactory.newAdvertisement(XMLElement) . For example :
XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( MimeMediaType.XMLUTF8, reader );or frequently: XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( msgElement );followed by: Advertisement adv = AdvertisementFactory.newAdvertisement(xml); |
StructuredDocument |
StructuredDocumentFactory.Instantiator.newInstance(MimeMediaType mimeType,
InputStream source)
Create a structured document from a stream containing an appropriately serialized instance of the same document. |
StructuredDocument |
StructuredDocumentFactory.TextInstantiator.newInstance(MimeMediaType mimeType,
Reader source)
Create a structured document from a Reader containing an appropriately serialized instance of the same document. |
StructuredDocument |
StructuredDocumentFactory.Instantiator.newInstance(MimeMediaType mimeType,
String doctype)
Create a new structured document of the type specified by doctype. |
StructuredDocument |
StructuredDocumentFactory.Instantiator.newInstance(MimeMediaType mimeType,
String doctype,
String value)
Create a new structured document of the type specified by doctype. |
static StructuredDocument |
StructuredDocumentFactory.newStructuredDocument(MimeMediaType mimetype,
InputStream stream)
Constructs an instance of StructuredDocument matching
the mime-type specified by the mimetype parameter. |
static StructuredDocument |
StructuredDocumentFactory.newStructuredDocument(MimeMediaType mimetype,
Reader reader)
Constructs an instance of StructuredDocument matching
the mime-type specified by the mimetype parameter. |
static StructuredDocument |
StructuredDocumentFactory.newStructuredDocument(MimeMediaType mimetype,
String doctype)
Constructs an instance of StructuredDocument matching
the mime-type specified by the mimetype parameter. |
static StructuredDocument |
StructuredDocumentFactory.newStructuredDocument(MimeMediaType mimetype,
String doctype,
String value)
Constructs an instance of StructuredDocument matching
the mime-type specified by the mimetype parameter. |
static boolean |
StructuredDocumentFactory.registerInstantiator(MimeMediaType mimetype,
StructuredDocumentFactory.Instantiator instantiator)
Register an instantiator object a mime-type of documents to be constructed. |
Constructors in net.jxta.document with parameters of type MimeMediaType | |
---|---|
BinaryDocument(byte[] someBytes,
MimeMediaType type)
Creates new BinaryDocument from a byte array. |
|
FileDocument(File file,
MimeMediaType type)
Create a new File Document. |
|
MimeMediaType(MimeMediaType type,
String params,
boolean replace)
Creates a new type/subtype MimeMediaType with the specified parameters. |
|
StructuredDocumentFactory.Instantiator.ExtensionMapping(String extension,
MimeMediaType mimetype)
default constructor |
Uses of MimeMediaType in net.jxta.endpoint |
---|
Fields in net.jxta.endpoint declared as MimeMediaType | |
---|---|
static MimeMediaType |
WireFormatMessageFactory.DEFAULT_WIRE_MIME
The mime media type of preferred/default wire format. |
protected MimeMediaType |
MessageElement.type
The type of this element. |
Methods in net.jxta.endpoint that return MimeMediaType | |
---|---|
MimeMediaType |
WireFormatMessage.getContentEncoding()
Returns the encoding used for this content. |
MimeMediaType |
TextDocumentMessageElement.getMimeType()
Returns the MIME Media type of this Document per
IETF RFC 2046 MIME : Media Types. |
MimeMediaType |
MessageElement.getMimeType()
Returns the MIME Media type of this Document per
IETF RFC 2046 MIME : Media Types. |
MimeMediaType[] |
WireFormatMessageFactory.Instantiator.getSupportedContentEncodings()
Returns a list of the content encodings supported by this serialization. |
MimeMediaType[] |
WireFormatMessageFactory.Instantiator.getSupportedMimeTypes()
Returns the list of mime types supported by this serialization. |
Methods in net.jxta.endpoint that return types with arguments of type MimeMediaType | |
---|---|
protected Map<MimeMediaType,WireFormatMessageFactory.Instantiator> |
WireFormatMessageFactory.getAssocTable()
Used by ClassFactory methods to get the mapping of keys to constructors. |
Methods in net.jxta.endpoint with parameters of type MimeMediaType | |
---|---|
static Message |
WireFormatMessageFactory.fromBuffer(ByteBuffer buffer,
MimeMediaType type,
MimeMediaType contentEncoding)
Constructs an instance of Message from matching the type
specified by the type parameter. |
Message |
WireFormatMessageFactory.Instantiator.fromBuffer(ByteBuffer buffer,
MimeMediaType type,
MimeMediaType contentEncoding)
Create an abstract message from a serialization. |
static Message |
WireFormatMessageFactory.fromWire(InputStream is,
MimeMediaType type,
MimeMediaType contentEncoding)
Constructs an instance of Message from matching the type
specified by the type parameter. |
Message |
WireFormatMessageFactory.Instantiator.fromWire(InputStream is,
MimeMediaType type,
MimeMediaType contentEncoding)
Create an abstract message from a serialization. |
Message.ElementIterator |
Message.getMessageElements(MimeMediaType type)
Returns a list iterator of all of the elements contained in this message whose mime-type matchs the given in the order they were added to the message. |
Message.ElementIterator |
Message.getMessageElements(String namespace,
MimeMediaType type)
Returns a list iterator of all of the elements contained in this message whose type matches the given in the order they were added to the message. |
static boolean |
WireFormatMessageFactory.registerInstantiator(MimeMediaType mimetype,
WireFormatMessageFactory.Instantiator instantiator)
Register an instantiator object a mime-type of documents to be constructed. |
static WireFormatMessage |
WireFormatMessageFactory.toWire(Message msg,
MimeMediaType type,
MimeMediaType[] preferedEncodings)
Constructs an instance of WireFormatMessage matching the type
specified by the type parameter. |
static WireFormatMessage |
WireFormatMessageFactory.toWire(Message msg,
MimeMediaType type,
MimeMediaType[] preferedEncodings)
Constructs an instance of WireFormatMessage matching the type
specified by the type parameter. |
WireFormatMessage |
WireFormatMessageFactory.Instantiator.toWire(Message msg,
MimeMediaType type,
MimeMediaType[] preferedContentEncoding)
Create a WireFormatMessage from an abstract message. |
WireFormatMessage |
WireFormatMessageFactory.Instantiator.toWire(Message msg,
MimeMediaType type,
MimeMediaType[] preferedContentEncoding)
Create a WireFormatMessage from an abstract message. |
Constructors in net.jxta.endpoint with parameters of type MimeMediaType | |
---|---|
ByteArrayMessageElement(String name,
MimeMediaType type,
byte[] b,
int offset,
int len,
MessageElement sig)
Create a new Element, but dont add it to the message. |
|
ByteArrayMessageElement(String name,
MimeMediaType type,
byte[] b,
int offset,
MessageElement sig)
Create a new MessageElement, The contents of the provided byte array are not copied during construction. |
|
ByteArrayMessageElement(String name,
MimeMediaType type,
byte[] b,
MessageElement sig)
Create a new Message Element. |
|
InputStreamMessageElement(String name,
MimeMediaType type,
InputStream in,
long len,
MessageElement sig)
Create a new Message Element. |
|
InputStreamMessageElement(String name,
MimeMediaType type,
InputStream in,
MessageElement sig)
Create a new MessageElement. |
|
MessageElement(String name,
MimeMediaType type,
MessageElement sig)
Internal constructor for initializing everything but the data. |
|
TextMessageElement(String name,
MimeMediaType type,
MessageElement sig)
Internal constructor for initializaing everything but the data. |
Uses of MimeMediaType in net.jxta.protocol |
---|
Methods in net.jxta.protocol with parameters of type MimeMediaType | |
---|---|
abstract Document |
PeerInfoQueryMessage.getDocument(MimeMediaType encodeAs)
|
abstract Document |
DiscoveryQueryMsg.getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
ResolverSrdiMsg.getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
ResolverResponseMsg.getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
DiscoveryResponseMsg.getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
RouteResponseMsg.getDocument(MimeMediaType asMimeType)
Deprecated. Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
SrdiMessage.getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
PipeResolverMessage.getDocument(MimeMediaType asMimeType)
Write message into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
RouteQueryMsg.getDocument(MimeMediaType asMimeType)
Deprecated. Write message into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
ResolverQueryMsg.getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
abstract Document |
PeerInfoResponseMessage.getDocument(MimeMediaType encodeAs)
|
|
JXSE | |||||||||
PREV NEXT | FRAMES NO FRAMES |