コード例 #1
0
 @Override
 public boolean canAccept(SaasMethod method, Document doc) {
   if (SaasBean.canAccept(method, CustomSaasMethod.class, getDropFileType()) && Util.isJsp(doc)) {
     return true;
   }
   return false;
 }
コード例 #2
0
  @Override
  protected String getCustomMethodBody() throws IOException {
    String paramUse = "";
    String paramDecl = "";
    String indent2 = "                 ";

    // Evaluate parameters (query(not fixed or apikey), header, template,...)
    List<ParameterInfo> params = getServiceMethodParameters();
    updateVariableNames(params);
    paramUse += Util.getHeaderOrParameterUsage(renameParameterNames(params));

    List<ParameterInfo> filterParams =
        J2eeUtil.filterJspParameters(super.getServiceMethodParameters());
    filterParams = renameParameterNames(filterParams);
    paramDecl += getHeaderOrParameterDeclaration(filterParams);
    return getCustomMethodBody(paramDecl, paramUse, getResultPattern(), indent2);
  }