|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.cics.atomservice.Atomservice
com.ibm.cics.atomservice.AtomserviceImpl
public class AtomserviceImpl
Usage:
This class is used to create and update the Atomservice configuration file.
Class level design/service information:
This class provides the functionality for the user to create, update,
marshall and unmarshall (between JAVA instance and XML) an atom config file.
AtomserviceImpl
Nested Class Summary | |
---|---|
static class |
AtomserviceImpl.PreferredMapper
|
Field Summary | |
---|---|
static java.lang.String |
CATEGORY
|
static java.lang.String |
COLLECTION
|
static java.lang.String |
FEED
|
static java.lang.String |
FILE
|
static java.lang.String |
PROGRAM
|
static java.lang.String |
SERVICE
|
static java.lang.String |
TSQUEUE
|
Constructor Summary | |
---|---|
AtomserviceImpl(java.io.InputStream infile)
Usage: Constructor to create an AtomserviceImpl from an existing Atomservice configuration file. |
|
AtomserviceImpl(java.lang.String version,
java.lang.String atomservice_type,
java.lang.String resource_name,
java.lang.String resource_type,
java.lang.String default_URI,
java.lang.String xmltransform_name)
Usage: Constructor to create an AtomserviceImpl |
Method Summary | |
---|---|
void |
changeCollectiontoFeed()
Usage: Change the Atomservice configuration file from type COLLECTION to FEED |
void |
changeFeedtoCollection()
Usage: Change the Atomservice configuration file from type FEED to COLLECTION |
java.lang.String |
getAtomEntryContentCicsResource()
Usage: Function to return the CICS resource name in the <atom:content cics:resource="name"> element contained within the <atom:entry> element |
java.lang.String |
getAtomEntryContentCicsType()
Usage: Function to return the CICS resource type in the <atom:content cics:type="cicstype"> element contained within the <atom:entry> element |
java.lang.String |
getAtomEntryLinkUri()
Usage: Function to return the href URI attribute of the <atom:link href="uri"> element contained within the <atom:entry> element |
java.lang.String |
getAtomEntryTitle()
Usage: Function to return the content of the <atom:title> element in the <atom:entry> element |
java.lang.String |
getAtomFeedLinkUri()
Usage: Function to return the href URI attribute of the <atom:link href="uri"> element contained within the <atom:feed> element |
java.lang.String |
getAtomFeedTitle()
Usage: Function to return the content of the <atom:title> element in the <atom:feed> element |
java.lang.String |
getAtomserviceType()
Usage: Function to return the Atomservice type in the <cics:atomservice type="value"> element |
java.lang.String |
getBindRoot()
Usage: Function to return the value of the root attribute in the <cics:bind root="value"> element |
java.lang.String |
getBindXmltransformName()
Usage: Function to get the optional XML Transform name in the <cics:bind xmltransform="value"> element |
int |
getCicsFeedWindow()
Usage: Function to return the CICS feed window attribute < cics:feed window="n"> |
java.lang.String |
getCicsResourceName()
Usage: Function to return the CICS resource name in the <cics:resource name="value"> element contained within the <cics:feed> element |
java.lang.String |
getCicsResourceType()
Usage: Function to return the CICS resource type in the <cics:resource type="cicstype"> element contained within the <cics:feed> element |
java.lang.String |
getUrimapTransaction()
Usage: Function to return the optional transaction ID of the <cics:urimap transaction="value"> element |
java.lang.String |
getUrimapUri()
Usage: Function to return the value of the URI attribute in the <cics:urimap uri="value"> element |
java.lang.String |
getUrimapUserid()
Usage: Function to return the optional user ID of the <cics:urimap userid="value"> element |
void |
updateAtomEntryContent(java.lang.String cics_resource_name,
java.lang.String cics_resource_type)
Usage: Function to update the |
void |
updateAtomEntryLinkUri(java.lang.String uri)
Usage: Function to update the |
void |
updateAtomEntryTitle(java.lang.String title)
Usage: Function to update the |
void |
updateAtomFeedLinkUri(java.lang.String uri)
Usage: Function to update the |
void |
updateAtomFeedTitle(java.lang.String title)
Usage: Function to update the |
void |
updateCicsFeedResource(java.lang.String name,
java.lang.String type)
Usage: Function to update the cics:resource element. |
void |
updateCicsFeedWindow(int window_size)
Usage: Function to add/update the CICS feed window attribute |
void |
updateCicsResourceBind(java.lang.String xmltransform_name,
java.lang.String root)
Usage: Function to update the cics:bind element. |
void |
updateUrimap(java.lang.String uri,
java.lang.String userid,
java.lang.String transaction)
Usage: Function to update the cics:urimap element. |
void |
updateUrimapOptions(java.lang.String userid,
java.lang.String transaction)
Usage: Function to update the optional cics:urimap User ID and Transaction ID attributes. |
void |
updateUrimapUri(java.lang.String uri)
Usage: Function to update the cics:urimap URI attribute. |
void |
writeConfigFile(java.io.OutputStream ConfigOutStream)
Usage: Function to write the configuration file java instance to a stream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TSQUEUE
public static final java.lang.String FILE
public static final java.lang.String PROGRAM
public static final java.lang.String FEED
public static final java.lang.String SERVICE
public static final java.lang.String COLLECTION
public static final java.lang.String CATEGORY
Constructor Detail |
---|
public AtomserviceImpl(java.io.InputStream infile) throws javax.xml.bind.JAXBException, org.xml.sax.SAXException
infile
- Stream of existing atom configuration file
javax.xml.bind.JAXBException
org.xml.sax.SAXException
public AtomserviceImpl(java.lang.String version, java.lang.String atomservice_type, java.lang.String resource_name, java.lang.String resource_type, java.lang.String default_URI, java.lang.String xmltransform_name)
version
- Current valid values is 2atomservice_type
- current valid values are AtomserviceImpl.FEED, AtomserviceImpl.COLLECTIONresource_name
- Name of the CICS resourceresource_type
- Type of the CICS resource. Current valid values are AtomserviceImpl.FILE AtomserviceImpl.TSQUEUE and AtomserviceImpl.PROGRAMdefault_URI
- Default URI to be used within the configuration filexmltransform_name
- Name of the CICS XML Transform resourceMethod Detail |
---|
public java.lang.String getAtomserviceType()
public java.lang.String getCicsResourceName()
public java.lang.String getCicsResourceType()
public void changeFeedtoCollection()
public void changeCollectiontoFeed()
public void updateCicsFeedWindow(int window_size)
window_size
- Positive number to set the window sizepublic int getCicsFeedWindow()
public void updateCicsFeedResource(java.lang.String name, java.lang.String type)
name
- CICS resource nametype
- CICS resource type (AtomserviceImpl.FILE AtomserviceImpl.TSQUEUE AtomserviceImpl.PROGRAM)public void updateCicsResourceBind(java.lang.String xmltransform_name, java.lang.String root)
xmltransform_name
- CICS XMLTransform resource nameroot
- Root stringpublic java.lang.String getBindRoot()
public java.lang.String getBindXmltransformName()
public void updateUrimap(java.lang.String uri, java.lang.String userid, java.lang.String transaction)
uri
- URI to be useduserid
- User ID to be usedtransaction
- Transaction ID to be usedpublic void updateUrimapUri(java.lang.String uri)
updateUrimap
uri
- URI to be usedpublic void updateUrimapOptions(java.lang.String userid, java.lang.String transaction)
userid
- User ID to be usedtransaction
- Transaction ID to be usedpublic java.lang.String getUrimapUri()
public java.lang.String getUrimapUserid()
public java.lang.String getUrimapTransaction()
public void updateAtomFeedTitle(java.lang.String title)
title
- Updated title to be used.public java.lang.String getAtomFeedTitle()
public void updateAtomFeedLinkUri(java.lang.String uri)
uri
- URI to be usedpublic java.lang.String getAtomFeedLinkUri()
public void updateAtomEntryTitle(java.lang.String title)
title
- Updated title to be used.public java.lang.String getAtomEntryTitle()
public void updateAtomEntryLinkUri(java.lang.String uri)
uri
- URI to be usedpublic java.lang.String getAtomEntryLinkUri()
public void updateAtomEntryContent(java.lang.String cics_resource_name, java.lang.String cics_resource_type)
cics_resource_name
- CICS resource namecics_resource_type
- CICS resource typepublic java.lang.String getAtomEntryContentCicsResource()
public java.lang.String getAtomEntryContentCicsType()
public void writeConfigFile(java.io.OutputStream ConfigOutStream) throws javax.xml.bind.JAXBException, java.io.IOException, org.xml.sax.SAXException
ConfigOutStream
- Java Stream to be written to
javax.xml.bind.JAXBException
java.io.IOException
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |