public class B2bRepository extends BaseRepository
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CLASSNAME |
private static java.lang.String |
CONNECTOR_PREFIX |
(package private) static java.lang.String |
COPYRIGHT |
private static java.lang.String |
DEFAULT_DOCTYPE_PUBLIC_ID |
private static java.lang.String |
DEFAULT_DOCTYPE_SYSTEM_ID |
private static java.lang.String |
DEFAULT_NEWQUOTE_DOCTYPE_PUBLIC_ID |
private static java.lang.String |
DEFAULT_NEWQUOTE_DOCTYPE_SYSTEM_ID |
private static java.lang.String |
DEFAULT_RESOURCE_FILE_NAME |
private static org.apache.log4j.Logger |
logger |
private static B2bRepository |
repository |
private static java.lang.String |
TX_PREFIX |
Modifier | Constructor and Description |
---|---|
private |
B2bRepository()
Users should use static getInstance() method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConnectorClass(java.lang.String theTransType)
Gets the value (application connector class) associated with a given response type.
|
java.lang.String |
getCxmlPublicDoctype() |
java.lang.String |
getCxmlSystemDoctype() |
static B2bRepository |
getInstance() |
protected java.lang.String |
getName() |
java.lang.String |
getNewQuotePublicDoctype() |
java.lang.String |
getNewQuoteSystemDoctype() |
java.util.Enumeration |
getSupportedTransactions()
Get the list of transactions that are supported.
|
java.util.Enumeration |
getTransactionAttributes(java.lang.String theTransType)
Get the list of transaction attributes.
|
java.lang.String |
getTransactionAttributeValue(java.lang.String theTransType,
java.lang.String theAttribute)
Get the value for a given attribute.
|
java.util.Enumeration |
getTransactionElementAttributes(java.lang.String theRequestType,
java.lang.String theElementName)
Get the list of (optional) transaction element attributes for a request type and element.
|
java.lang.String |
getTransactionElementAttributeValue(java.lang.String theTransType,
java.lang.String theElement,
java.lang.String theAttribute)
Get the value for a given attribute.
|
java.lang.String |
getTransactionElementAttributeValueText(java.lang.String theTransType,
java.lang.String theElement,
java.lang.String theAttribute,
java.lang.String theAttributeValue)
Get the text value for an element containing an attribute.
|
java.util.Enumeration |
getTransactionElements(java.lang.String theRequestType)
Get the list of (optional) transaction elements for a request type.
|
java.lang.String |
getTransactionServlet(java.lang.String theTransType)
Get the servlet portion of the URL for the given transaction type.
|
boolean |
isDocumentValidated()
Determine if XML documents should be validated.
|
boolean |
isTransactionAvailable(java.lang.String theType)
Determine if the given transaction type is available for processing.
|
lookup, lookup
static final java.lang.String COPYRIGHT
private static final java.lang.String CLASSNAME
private static org.apache.log4j.Logger logger
private static final java.lang.String TX_PREFIX
private static final java.lang.String CONNECTOR_PREFIX
private static final java.lang.String DEFAULT_RESOURCE_FILE_NAME
private static java.lang.String DEFAULT_DOCTYPE_PUBLIC_ID
private static java.lang.String DEFAULT_DOCTYPE_SYSTEM_ID
private static java.lang.String DEFAULT_NEWQUOTE_DOCTYPE_PUBLIC_ID
private static java.lang.String DEFAULT_NEWQUOTE_DOCTYPE_SYSTEM_ID
private static B2bRepository repository
private B2bRepository()
protected java.lang.String getName()
getName
in class BaseRepository
public static B2bRepository getInstance()
public java.lang.String getCxmlSystemDoctype()
public java.lang.String getCxmlPublicDoctype()
public java.lang.String getNewQuoteSystemDoctype()
public java.lang.String getNewQuotePublicDoctype()
public boolean isDocumentValidated()
public java.lang.String getConnectorClass(java.lang.String theTransType)
theTransType
- - the transaction type, e.g., OrderRequestpublic java.util.Enumeration getSupportedTransactions()
public boolean isTransactionAvailable(java.lang.String theType)
theType
- - the transaction type, e.g., OrderRequestpublic java.lang.String getTransactionServlet(java.lang.String theTransType)
theTransType
- - the transaction typepublic java.util.Enumeration getTransactionAttributes(java.lang.String theTransType)
theTransType
- - the transaction type, e.g., OrderRequestpublic java.lang.String getTransactionAttributeValue(java.lang.String theTransType, java.lang.String theAttribute)
theTransType
- - the transaction type, e.g., OrderRequesttheAttribute
- - the attribute namepublic java.util.Enumeration getTransactionElements(java.lang.String theRequestType)
theRequestType
- - the request typepublic java.util.Enumeration getTransactionElementAttributes(java.lang.String theRequestType, java.lang.String theElementName)
theRequestType
- - the request typetheElementName
- - the element name for the transactionpublic java.lang.String getTransactionElementAttributeValue(java.lang.String theTransType, java.lang.String theElement, java.lang.String theAttribute)
theTransType
- - the transaction type, e.g., OrderRequesttheElement
- - the element name for the transactiontheAttribute
- - the attribute name for the elementpublic java.lang.String getTransactionElementAttributeValueText(java.lang.String theTransType, java.lang.String theElement, java.lang.String theAttribute, java.lang.String theAttributeValue)
theTransType
- - the transaction type, e.g., OrderRequesttheElement
- - the element name for the transactiontheAttribute
- - the attribute name for the elementtheAttributeValue
- - the attribute value