|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.body.http.HttpRemoteBodyImpl
Field Summary | |
protected UniversalBody |
body
The encapsulated local body transient to deal with custom serialization of requests. |
Fields inherited from interface org.objectweb.proactive.core.body.RemoteBody |
bodyLogger |
Constructor Summary | |
HttpRemoteBodyImpl(UniversalBody body)
|
Method Summary | |
void |
addNFEListener(NFEListener listener)
|
void |
changeProxiedBody(Body newBody)
Change the body referenced by this adapter |
void |
createShortcut(Shortcut shortcut)
|
void |
disableAC()
Disables automatic continuation mechanism for this body |
void |
enableAC()
Enables automatic continuation mechanism for this body |
int |
fireNFE(NonFunctionalException e)
|
java.security.cert.X509Certificate |
getCertificate()
entity certificate |
byte[] |
getCertificateEncoded()
Entity's X509Certificate as byte array |
java.util.ArrayList |
getEntities()
Retrieves all the entity's ID which contain this entity plus this entity ID. |
UniqueID |
getID()
Returns the UniqueID of this body This identifier is unique accross all JVMs |
java.lang.String |
getJobID()
|
java.lang.String |
getNodeURL()
Returns the url of the node this body is associated to The url of the node can change if the active object migrates |
SecurityContext |
getPolicy(SecurityContext securityContext)
Ask the entity to fill the securityContext parameters with its own policy according to the communication details contained in the given securityContext |
java.security.PublicKey |
getPublicKey()
entity public key |
byte[][] |
publicKeyExchange(long sessionID,
byte[] my_pub,
byte[] my_cert,
byte[] sig_code)
exchange entity certificate and/or public key if certificate are not available |
byte[] |
randomValue(long sessionID,
byte[] cl_rand)
Exchange random value between client and server entity |
java.lang.Object |
receiveFTMessage(FTMessage ev)
STILL NOT IMPLEMENTED |
int |
receiveReply(Reply reply)
Receives a reply in response to a former request. |
int |
receiveRequest(Request request)
Receives a request for later processing. |
void |
removeImmediateService(java.lang.String methodName,
java.lang.Class[] parametersTypes)
|
void |
removeNFEListener(NFEListener listener)
|
byte[][] |
secretKeyExchange(long sessionID,
byte[] tmp,
byte[] tmp1,
byte[] tmp2,
byte[] tmp3,
byte[] tmp4)
this method sends encoded secret parameters to the target entity |
void |
setImmediateService(java.lang.String methodName)
For setting an immediate service for this body. |
void |
setImmediateService(java.lang.String methodName,
java.lang.Class[] parametersTypes)
|
long |
startNewSession(Communication policy)
start an unvalidated empty session |
void |
terminate()
Terminate the body. |
void |
terminateSession(long sessionID)
terminate a given session |
void |
updateLocation(UniqueID id,
UniversalBody body)
Signals to this body that the body identified by id is now to a new remote location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient UniversalBody body
Constructor Detail |
public HttpRemoteBodyImpl(UniversalBody body)
Method Detail |
public int receiveRequest(Request request) throws java.io.IOException, RenegotiateSessionException
RemoteBody
receiveRequest
in interface RemoteBody
request
- the request to process
RenegotiateSessionException
java.io.IOException
UniversalBody.receiveRequest(org.objectweb.proactive.core.body.request.Request)
public int receiveReply(Reply reply) throws java.io.IOException
RemoteBody
receiveReply
in interface RemoteBody
reply
- the reply received
java.io.IOException
- if the reply cannot be acceptedUniversalBody.receiveReply(org.objectweb.proactive.core.body.reply.Reply)
public void terminate() throws java.io.IOException
RemoteBody
terminate
in interface RemoteBody
java.io.IOException
- if an exception occured during the remote communicationUniversalBody.terminate()
public java.lang.String getNodeURL() throws HTTPRemoteException
RemoteBody
getNodeURL
in interface RemoteBody
HTTPRemoteException
UniversalBody.getNodeURL()
public UniqueID getID()
RemoteBody
getID
in interface RemoteBody
UniversalBody.getID()
public void updateLocation(UniqueID id, UniversalBody body) throws java.io.IOException
RemoteBody
updateLocation
in interface RemoteBody
id
- the id of the bodybody
- the stub to the new location
java.io.IOException
- if an exception occured during the remote communicationUniversalBody.updateLocation(org.objectweb.proactive.core.UniqueID, org.objectweb.proactive.core.body.UniversalBody)
public void enableAC() throws java.io.IOException
RemoteBody
enableAC
in interface RemoteBody
java.io.IOException
- if an exception occured during the remote communicationUniversalBody.enableAC()
public void disableAC() throws java.io.IOException
RemoteBody
disableAC
in interface RemoteBody
java.io.IOException
- if an exception occured during the remote communicationUniversalBody.disableAC()
public void setImmediateService(java.lang.String methodName) throws java.io.IOException
RemoteBody
setImmediateService
in interface RemoteBody
java.io.IOException
- if an exception occured during the remote communicationUniversalBody.setImmediateService(java.lang.String)
public void setImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
setImmediateService
in interface RemoteBody
java.io.IOException
public void removeImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
removeImmediateService
in interface RemoteBody
java.io.IOException
public void terminateSession(long sessionID) throws java.io.IOException, SecurityNotAvailableException
SecurityEntity
terminateSession
in interface SecurityEntity
sessionID
-
SecurityNotAvailableException
- id security is not available
java.io.IOException
SecurityEntity.terminateSession(long)
public java.security.cert.X509Certificate getCertificate() throws SecurityNotAvailableException, java.io.IOException
SecurityEntity
getCertificate
in interface SecurityEntity
java.io.IOException
- if communication fails
SecurityNotAvailableException
- if security is not availableSecurityEntity.getCertificate()
public long startNewSession(Communication policy) throws SecurityNotAvailableException, java.io.IOException, RenegotiateSessionException
SecurityEntity
startNewSession
in interface SecurityEntity
policy
- policy associated to the session
RenegotiateSessionException
- if the session immediatly expires
SecurityNotAvailableException
- if security is not available
java.io.IOException
SecurityEntity.startNewSession(org.objectweb.proactive.ext.security.Communication)
public java.security.PublicKey getPublicKey() throws SecurityNotAvailableException, java.io.IOException
SecurityEntity
getPublicKey
in interface SecurityEntity
SecurityNotAvailableException
java.io.IOException
SecurityEntity.getPublicKey()
public byte[] randomValue(long sessionID, byte[] cl_rand) throws SecurityNotAvailableException, java.io.IOException, RenegotiateSessionException
SecurityEntity
randomValue
in interface SecurityEntity
sessionID
- the session IDcl_rand
- client random value
RenegotiateSessionException
- if the session has expired
SecurityNotAvailableException
- if the security is not available
java.io.IOException
SecurityEntity.randomValue(long, byte[])
public byte[][] publicKeyExchange(long sessionID, byte[] my_pub, byte[] my_cert, byte[] sig_code) throws SecurityNotAvailableException, java.io.IOException, KeyExchangeException, RenegotiateSessionException
SecurityEntity
publicKeyExchange
in interface SecurityEntity
sessionID
- the session IDmy_pub
- encoded public keymy_cert
- encoded certificatesig_code
- encoded signature of previous paramaters
SecurityNotAvailableException
- if the security is not available
KeyExchangeException
- if a key data/length/algorithm is not supported
RenegotiateSessionException
- if the session has expired
java.io.IOException
SecurityEntity.publicKeyExchange(long, byte[], byte[], byte[])
public byte[][] secretKeyExchange(long sessionID, byte[] tmp, byte[] tmp1, byte[] tmp2, byte[] tmp3, byte[] tmp4) throws SecurityNotAvailableException, java.io.IOException, RenegotiateSessionException
SecurityEntity
secretKeyExchange
in interface SecurityEntity
sessionID
- session IDtmp
- the AES key use to exchange secret messagetmp1
- Initilization parameters for the AES keytmp2
- MAC key for checking signature of future messagestmp3
- random value to prevent message replays by an external attackertmp4
- encoded signature of the previous parameters
RenegotiateSessionException
java.io.IOException
- if communication fails
SecurityNotAvailableException
- if this entity does not support securitySecurityEntity.secretKeyExchange(long, byte[], byte[], byte[], byte[], byte[])
public SecurityContext getPolicy(SecurityContext securityContext) throws SecurityNotAvailableException, java.io.IOException
SecurityEntity
getPolicy
in interface SecurityEntity
securityContext
- communication details allowing the entity to
look for a matching policy
SecurityNotAvailableException
- thrown the entity doest not support the security
java.io.IOException
SecurityEntity.getPolicy(org.objectweb.proactive.ext.security.SecurityContext)
public byte[] getCertificateEncoded() throws SecurityNotAvailableException, java.io.IOException
SecurityEntity
getCertificateEncoded
in interface SecurityEntity
SecurityNotAvailableException
java.io.IOException
SecurityEntity.getCertificateEncoded()
public java.util.ArrayList getEntities() throws SecurityNotAvailableException, java.io.IOException
SecurityEntity
getEntities
in interface SecurityEntity
SecurityNotAvailableException
- if the target entity does not support security
java.io.IOException
SecurityEntity.getEntities()
public java.lang.String getJobID()
getJobID
in interface RemoteBody
Job.getJobID()
public java.lang.Object receiveFTMessage(FTMessage ev) throws java.io.IOException
receiveFTMessage
in interface RemoteBody
ev
- the message
java.io.IOException
- if an exception occured during the remote communicationUniversalBody.receiveFTMessage(FTMessage)
public void createShortcut(Shortcut shortcut) throws java.io.IOException
java.io.IOException
UniversalBody.createShortcut(org.objectweb.proactive.core.component.request.Shortcut)
public void addNFEListener(NFEListener listener) throws HTTPRemoteException
addNFEListener
in interface RemoteBody
HTTPRemoteException
public void removeNFEListener(NFEListener listener) throws HTTPRemoteException
removeNFEListener
in interface RemoteBody
HTTPRemoteException
public int fireNFE(NonFunctionalException e) throws HTTPRemoteException
fireNFE
in interface RemoteBody
HTTPRemoteException
public void changeProxiedBody(Body newBody) throws java.io.IOException
RemoteBody
changeProxiedBody
in interface RemoteBody
newBody
- the body referenced after the call
java.io.IOException
- if an exception occured during the remote communicationRemoteBody.changeProxiedBody(org.objectweb.proactive.Body)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |