Top Description Inners Fields Constructors Methods
com.sun.mail.imap.protocol

public Class Namespaces

extends Object
Class Inheritance
Imports
java.util.*, com.sun.mail.iap.*

This class and its inner class represent the response to the NAMESPACE command.

See RFC 2342.

Author
Bill Shannon

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Namespaces.Namespace

A single namespace entry.

Field Summary

Modifier and TypeField and Description
public Namespaces.Namespace[]
otherUsers

The namespaces for other users.

public Namespaces.Namespace[]
personal

The personal namespaces.

public Namespaces.Namespace[]
shared

The shared namespace.

Constructor Summary

AccessConstructor and Description
public
Namespaces(Response
the Response to parse
r
)

Parse out all the namespaces.

Method Summary

Modifier and TypeMethod and Description
private Namespaces.Namespace[]
getNamespaces(Response r)

Parse out one of the three sets of namespaces.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

otherUsersback to summary
public Namespaces.Namespace[] otherUsers

The namespaces for other users. May be null.

personalback to summary
public Namespaces.Namespace[] personal

The personal namespaces. May be null.

sharedback to summary
public Namespaces.Namespace[] shared

The shared namespace. May be null.

Constructor Detail

Namespacesback to summary
public Namespaces(Response r) throws ProtocolException

Parse out all the namespaces.

Parameters
r:Response

the Response to parse

Exceptions
ProtocolException:
for any protocol errors

Method Detail

getNamespacesback to summary
private Namespaces.Namespace[] getNamespaces(Response r) throws ProtocolException

Parse out one of the three sets of namespaces.

com.sun.mail.imap.protocol back to summary

public Class Namespaces.Namespace

extends Object
Class Inheritance

A single namespace entry.

Field Summary

Modifier and TypeField and Description
public char
delimiter

Delimiter between names in this namespace.

public String
prefix

Prefix string for the namespace.

Constructor Summary

AccessConstructor and Description
public
Namespace(Response
the Response to parse
r
)

Parse a namespace element out of the response.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delimiterback to summary
public char delimiter

Delimiter between names in this namespace.

prefixback to summary
public String prefix

Prefix string for the namespace.

Constructor Detail

Namespaceback to summary
public Namespace(Response r) throws ProtocolException

Parse a namespace element out of the response.

Parameters
r:Response

the Response to parse

Exceptions
ProtocolException:
for any protocol errors