wt.inf.template.upload
Class IxbJarReaderBasedRequest

java.lang.Object
  extended bywt.inf.template.upload.IxbJarReaderBasedRequest
All Implemented Interfaces:
ImportTemplateFromJarRequest, ImportTemplateRequest, Serializable, TemplateRequest

public class IxbJarReaderBasedRequest
extends Object
implements ImportTemplateFromJarRequest, Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  File handle
           
private  IXBJarReader reader
           
private static String RESOURCE
           
 
Constructor Summary
IxbJarReaderBasedRequest(File jarFile)
          

Supported API: false
 
Method Summary
 void closeRequestStream(InputStream stream)
          

Supported API: false
private  InputStream computeTemplateStream(String[] fnames)
           
 InputStream getBusinessXMLStream()
          Returns the business XML for the template.
 InputStream getContentStream(String contentId)
          returns an input stream corresponding to a content file

Supported API: false
 File getFileHandle()
          

Supported API: false
 InputStream getFragmentStream(String fragId)
          Returns a business fragment referenced in the input file

Supported API: false
private  InputStream getStream(String name)
           
 InputStream getTemplateStream()
          Returns an input stream corresponding to XML specification of the template metada.
private  boolean isTemplateTag(IxbElement elem)
           
 void releaseRequest()
          

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

reader

private IXBJarReader reader

handle

private File handle
Constructor Detail

IxbJarReaderBasedRequest

public IxbJarReaderBasedRequest(File jarFile)


Supported API: false

Parameters:
jarFile -
Method Detail

getTemplateStream

public InputStream getTemplateStream()
                              throws WTException
Returns an input stream corresponding to XML specification of the template metada. (Note, this is NOT the business XML).

Supported API: false

Specified by:
getTemplateStream in interface ImportTemplateRequest
Returns:
InputStream
Throws:
WTException

getBusinessXMLStream

public InputStream getBusinessXMLStream()
                                 throws WTException
Returns the business XML for the template.

Supported API: false

Specified by:
getBusinessXMLStream in interface ImportTemplateRequest
Returns:
InputStream
Throws:
WTException

getContentStream

public InputStream getContentStream(String contentId)
                             throws WTException
returns an input stream corresponding to a content file

Supported API: false

Specified by:
getContentStream in interface ImportTemplateRequest
Parameters:
contentId -
Returns:
InputStream
Throws:
WTException

getFragmentStream

public InputStream getFragmentStream(String fragId)
                              throws WTException
Returns a business fragment referenced in the input file

Supported API: false

Specified by:
getFragmentStream in interface ImportTemplateRequest
Parameters:
fragId -
Returns:
InputStream
Throws:
WTException

releaseRequest

public void releaseRequest()
                    throws WTException


Supported API: false

Specified by:
releaseRequest in interface ImportTemplateRequest
Throws:
WTException

closeRequestStream

public void closeRequestStream(InputStream stream)
                        throws WTException


Supported API: false

Specified by:
closeRequestStream in interface ImportTemplateRequest
Parameters:
stream -
Throws:
WTException

getFileHandle

public File getFileHandle()
                   throws WTException


Supported API: false

Specified by:
getFileHandle in interface ImportTemplateRequest
Returns:
File
Throws:
WTException

computeTemplateStream

private InputStream computeTemplateStream(String[] fnames)
                                   throws WTException
Throws:
WTException

isTemplateTag

private boolean isTemplateTag(IxbElement elem)
                       throws WTException
Throws:
WTException

getStream

private InputStream getStream(String name)
                       throws WTException
Throws:
WTException