com.bea.wsrp.resource
Class RewritableResourceURLContext

java.lang.Object
  extended by com.bea.wsrp.resource.RewritableResourceURLContext

public class RewritableResourceURLContext
extends Object

Theis class defines if and what parts of an WSRP resource should be rewritable by a client (browser/ javascript).


Constructor Summary
RewritableResourceURLContext(boolean isRewritingAllowed, String immutableURI, String mutableURI, String mutableParams, boolean isGetResourceOpperation)
          Create a context
 
Method Summary
 boolean equals(Object obj)
           
 String getImmutableURI()
          The client immutable portion of the URL or Resource ID
 String getMutableParameters()
          Get the resource's paramters
 String getMutableURI()
          The client rewritable portion of the URL or Resource ID
 int hashCode()
           
 boolean isGetResourceOpperation()
          Should getResource() be called or use a proxied resource.
 boolean isRewritingAllowed()
          Is the URL representing this resource client rewritable.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RewritableResourceURLContext

public RewritableResourceURLContext(boolean isRewritingAllowed,
                                    String immutableURI,
                                    String mutableURI,
                                    String mutableParams,
                                    boolean isGetResourceOpperation)
Create a context

Parameters
isRewritingAllowed - If true a client rewritable URL will be generated. If false a non-rewritable URL will be generated AND all other feilds are meaningless.
immutableURI - The client immutable portion of the URL (proxied) or resourceID (getResource()).
mutableURI - The client rewritable portion of the URL (proxied) or resourceID (getResource()).
mutableParams - The mutsable parameters for Resource in www-url-form-encoded format
isGetResourceOpperation - If true the getResource() SOAP operation will be used. If false it will be a proxied resource.
Method Detail

isRewritingAllowed

public boolean isRewritingAllowed()
Is the URL representing this resource client rewritable.

Returns
True if its rewritable.

getImmutableURI

public String getImmutableURI()
The client immutable portion of the URL or Resource ID

Returns
the immutable portion of the URI.

getMutableURI

public String getMutableURI()
The client rewritable portion of the URL or Resource ID

Returns
the rewritable portion of the URI.

isGetResourceOpperation

public boolean isGetResourceOpperation()
Should getResource() be called or use a proxied resource.

Returns
true when getResource() should be used. False when a proxied resource should be used.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getMutableParameters

public String getMutableParameters()
Get the resource's paramters

Returns
the parameters in www-url-form-encoded format


Copyright © 2011, Oracle. All rights reserved.