|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.jndi.client.MappedDocumentRepositoryStub
public final class MappedDocumentRepositoryStub
Stub for the MappedDocumentRepository.
Copyright © 2006-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
DocumentMap| Constructor Summary | |
|---|---|
MappedDocumentRepositoryStub()
Constructs a new object. |
|
MappedDocumentRepositoryStub(Context context)
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
addDocument(URI uri,
String document)
Adds the given document to this repository. |
void |
addDocument(URI uri,
VoiceXmlDocument document)
Adds the given document to this repository. |
protected void |
clearSkeleton()
Clears a known remote reference to the skeleton. |
Context |
getContext()
Retrieves the context to use. |
protected ErrorEvent |
getErrorEvent(Throwable throwable)
Digs into the throwable and tries to find an ErrorEvent
in the root cause hierarchy. |
protected Class |
getLocalClass()
Retrieves the type of the local interface. |
Reference |
getReference()
|
protected Class<RemoteMappedDocumentRepository> |
getRemoteClass()
Retrieves the type of the remote interface. |
protected T |
getSkeleton(String... suffix)
Lazy instantiation of the skeleton. |
String |
getStubName()
Retrieves the name to which the stub is bound. |
URI |
getUri(String ssp)
Gets an URI that can be evaluated by this scheme strategy for the given ssp. |
void |
setContext(Context ctx)
Sets the JNDI context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.Referenceable |
|---|
getReference |
| Constructor Detail |
|---|
public MappedDocumentRepositoryStub()
public MappedDocumentRepositoryStub(Context context)
context - The context to use.| Method Detail |
|---|
public String getStubName()
getStubName in interface Stubprotected Class<RemoteMappedDocumentRepository> getRemoteClass()
protected Class getLocalClass()
public URI getUri(String ssp)
getUri in interface MappedDocumentRepositoryssp - Scheme specific part
null in case of an
error.
public void addDocument(URI uri,
String document)
addDocument in interface MappedDocumentRepositoryuri - URI as a key for later retrieval.document - Document to be added.
public void addDocument(URI uri,
VoiceXmlDocument document)
addDocument in interface MappedDocumentRepositoryuri - URI as a key for later retrieval.document - Document to be added.public final void setContext(Context ctx)
ctx - The context to use.public Context getContext()
public final Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingExceptionprotected final T getSkeleton(String... suffix)
This method tries to lookup the skeleton with the following
name
getRemoteClass().getSimpleName().suffix[0].suffix[1]...
If no suffixes are given the simple class name is used instead.
suffix - List of suffixes to be appended.
null in case of an error.protected final void clearSkeleton()
This method must be called in case of a remote exception. As a consequence a following method call will try to retreive a new fresh reference to the skeleton.
protected final ErrorEvent getErrorEvent(Throwable throwable)
ErrorEvent
in the root cause hierarchy.
throwable - The throwable to examine.
ErrorEvent or null if there
is none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||