public abstract class AcmeResource extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
AcmeResource(Session session)
Create a new
AcmeResource . |
Modifier and Type | Method and Description |
---|---|
URL |
getLocation()
Gets the resource's location.
|
protected Session |
getSession()
Gets the
Session this resource is bound with. |
void |
rebind(Session session)
Rebinds this resource to a
Session . |
protected void |
setLocation(URL location)
Sets the resource's location.
|
protected void |
setSession(Session session)
Sets a new
Session . |
protected AcmeResource(Session session)
AcmeResource
.session
- Session
the resource is bound withprotected Session getSession()
Session
this resource is bound with.protected void setSession(Session session)
Session
.protected void setLocation(URL location)
public void rebind(Session session)
Session
.
Sessions are not serialized, because they contain volatile session data and also a
private key. After de-serialization of an AcmeResource
, use this method to
rebind it to a Session
.
session
- Session
to bind this resource topublic URL getLocation()
Copyright © 2015–2019. All rights reserved.