本文整理汇总了Java中com.helger.peppol.identifier.generic.process.IProcessIdentifier类的典型用法代码示例。如果您正苦于以下问题:Java IProcessIdentifier类的具体用法?Java IProcessIdentifier怎么用?Java IProcessIdentifier使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IProcessIdentifier类属于com.helger.peppol.identifier.generic.process包,在下文中一共展示了IProcessIdentifier类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProcessID
import com.helger.peppol.identifier.generic.process.IProcessIdentifier; //导入依赖的package包/类
@Nonnull
public static IHCNode getProcessID (@Nonnull final IProcessIdentifier aDocTypeID)
{
EPredefinedProcessIdentifier ePredefined = null;
for (final EPredefinedProcessIdentifier e : EPredefinedProcessIdentifier.values ())
if (e.getAsProcessIdentifier ().equals (aDocTypeID))
{
ePredefined = e;
break;
}
if (ePredefined != null)
return new HCTextNode (ePredefined.getValue () + " [predefined]");
return _getWBRList (aDocTypeID.getURIEncoded ());
}
示例2: _getReceiverEndpoint
import com.helger.peppol.identifier.generic.process.IProcessIdentifier; //导入依赖的package包/类
/**
* @param aRecipientID
* PEPPOL Recipient ID
* @param aDocTypeID
* PEPPOL document type ID
* @param aProcessID
* PEPPOL process ID
* @return The access point URL to be used or <code>null</code>
* @throws OpenAS2Exception
* In case the endpoint address could not be resolved.
*/
@Nullable
private static EndpointType _getReceiverEndpoint (@Nullable final IParticipantIdentifier aRecipientID,
@Nullable final IDocumentTypeIdentifier aDocTypeID,
@Nullable final IProcessIdentifier aProcessID,
@Nonnull final String sMessageID) throws OpenAS2Exception
{
// Get configured client
final SMPClientReadOnly aSMPClient = AS2PeppolServletConfiguration.getSMPClient ();
if (aSMPClient == null)
throw new OpenAS2Exception (sMessageID + " No SMP client configured!");
if (aRecipientID == null || aDocTypeID == null || aProcessID == null)
return null;
try
{
if (s_aLogger.isDebugEnabled ())
{
s_aLogger.debug (sMessageID +
" Looking up the endpoint of recipient " +
aRecipientID.getURIEncoded () +
" at SMP URL '" +
aSMPClient.getSMPHostURI () +
"' for " +
aRecipientID.getURIEncoded () +
" and " +
aDocTypeID.getURIEncoded () +
" and " +
aProcessID.getURIEncoded ());
}
// Query the SMP
return aSMPClient.getEndpoint (aRecipientID, aDocTypeID, aProcessID, ESMPTransportProfile.TRANSPORT_PROFILE_AS2);
}
catch (final Throwable t)
{
throw new OpenAS2Exception (sMessageID +
" Failed to retrieve endpoint of recipient " +
aRecipientID.getURIEncoded (),
t);
}
}
示例3: setPeppolProcessID
import com.helger.peppol.identifier.generic.process.IProcessIdentifier; //导入依赖的package包/类
/**
* Set the PEPPOL process identifier for the exchanged business document.
*
* @param aPeppolProcessID
* The PEPPOL process identifier. May be <code>null</code>.
* @return this for chaining
*/
@Nonnull
public AS2ClientBuilder setPeppolProcessID (@Nullable final IProcessIdentifier aPeppolProcessID)
{
m_aPeppolProcessID = aPeppolProcessID;
return this;
}