예제 #1
0
  public void create(ServiceDescription sd) throws ServantException {
    super.create(sd);
    Properties p = sd.getProperties();

    int bufferSize = PropertiesConstants.getInt(p, "bufferSize", 10240, true);

    buffer = new byte[bufferSize];
  }
예제 #2
0
파일: Upload.java 프로젝트: j112929/alogic
  public void create(ServiceDescription sd) throws ServantException {
    super.create(sd);
    Properties p = sd.getProperties();

    int bufferSize = PropertiesConstants.getInt(p, "bufferSize", 10240, true);

    buffer = new byte[bufferSize];

    domain = PropertiesConstants.getString(p, "blob.domain", domain);

    blobManager = BlobTool.getBlobManager(domain);
    if (blobManager == null) {
      throw new ServantException(
          "core.blob_not_found", "Can not find a blob manager named: " + domain);
    }
  }