public Object convert(Class type, Object value) { if (value==null) return null; if (value instanceof String) { return fromString((String) value); } throw new UnsupportedOperationException(); } }
/** @deprecated use {@link #doBuildWithParameters(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void doBuildWithParameters(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { doBuildWithParameters(req, rsp, TimeDuration.fromString(req.getParameter("delay"))); }
/** @deprecated use {@link #buildWithParameters(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void buildWithParameters(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { buildWithParameters(req,rsp,TimeDuration.fromString(req.getParameter("delay"))); }
/** @deprecated use {@link #doBuild(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void doBuild(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { doBuild(req, rsp, TimeDuration.fromString(req.getParameter("delay"))); }
/** @deprecated use {@link #_doBuild(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void _doBuild(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { _doBuild(req, rsp, TimeDuration.fromString(req.getParameter("delay"))); }
public Object convert(Class type, Object value) { if (value==null) return null; if (value instanceof String) { return fromString((String) value); } throw new UnsupportedOperationException(); } }
/** @deprecated use {@link #doBuild(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void doBuild(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { doBuild(req, rsp, TimeDuration.fromString(req.getParameter("delay"))); }
/** @deprecated use {@link #doBuildWithParameters(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void doBuildWithParameters(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { doBuildWithParameters(req, rsp, TimeDuration.fromString(req.getParameter("delay"))); }
/** @deprecated use {@link #buildWithParameters(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void buildWithParameters(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { buildWithParameters(req,rsp,TimeDuration.fromString(req.getParameter("delay"))); }
/** @deprecated use {@link #_doBuild(StaplerRequest, StaplerResponse, TimeDuration)} */ @Deprecated public void _doBuild(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { _doBuild(req, rsp, TimeDuration.fromString(req.getParameter("delay"))); }
private TimeDuration getDelayFromRequest(StaplerRequest req) { return (req.hasParameter("delay")) ? TimeDuration.fromString(req.getParameter("delay")) : new TimeDuration(0); }
? TimeDuration.fromString(req.getParameter("delay")) : new TimeDuration(0);
? TimeDuration.fromString(req.getParameter("delay")) : new TimeDuration(0);