/** * Set-up method that can be overridden in order to initialize the state of the resource. By * default it does nothing. * * @see #init(Context, Request, Response) */ @Override public void doInit() { super.doInit(); }
@Override protected void doInit() throws ResourceException { super.doInit(); this.autoDescribing = true; }
@Override protected void doInit() throws ResourceException { super.doInit(); }
@Override protected void doInit() throws ResourceException { super.doInit(); this.carId = Integer.parseInt(getAttribute("id")); }
@Override protected void doInit() throws ResourceException { super.doInit(); Context ctx = getContext(); ConcurrentMap<String, Object> attribs = ctx.getAttributes(); clients = (ClientManager) attribs.get(ClientManager.class.getName()); tokens = (TokenManager) attribs.get(TokenManager.class.getName()); getLogger().fine("Found client store = " + clients); }
@Override protected final void doInit() throws ResourceException { restApi.setApiRootRef( getRootRef() ); // FIXME Find a way to not do it on each request super.doInit(); }
@Override public void doInit() { super.doInit(); something = (String) getRequest().getAttributes().get("something"); really = getQSBoolean("really"); }