com.sun.ebxml.registry.lcm.quota
Class QuotaServiceImpl

java.lang.Object
  |
  +--com.sun.ebxml.registry.lcm.quota.QuotaServiceImpl

public class QuotaServiceImpl
extends java.lang.Object


Constructor Summary
QuotaServiceImpl()
           
 
Method Summary
 void checkQuota(java.lang.String userId)
           
static QuotaServiceImpl getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotaServiceImpl

public QuotaServiceImpl()
Method Detail

getInstance

public static QuotaServiceImpl getInstance()

checkQuota

public void checkQuota(java.lang.String userId)
                throws QuotaExceededException,
                       RegistryException
Throws:
QuotaExceededException - if the size of already submitted items exceeds the quota specified in ebxmlrr.properties. It simply counts the number of bytes of previously submitted items and throws the exception on *next* request. So a single request can submit an item whose size is bigger than the quota limit.
RegistryException - if there is a IOException when getting the items sizes.


Copyright © 2001-2003 OASIS. All Rights Reserved.