|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-07 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.security.service.ResourceBase
weblogic.security.service.RemoteResource
public final class RemoteResource
The RemoteResource class is used by WLS
to represent a service endpoint that is not deployed
on the local WLS server. This resource representation,
among other things, is used to retrieve credentials that the
client (on WLS) can used to communicate with the remote
service endpoint.
The toString format (which is produced by the
ResourceBase class) for a Remote resource is:
type=<remote>, protocol=http, remoteHost=myHost, remotePort=7001, path=/myWebapp/myWS, method=myMethod
| Field Summary |
|---|
| Fields inherited from class weblogic.security.service.ResourceBase |
|---|
id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, values |
| Fields inherited from interface weblogic.security.spi.SelfDescribingResource |
|---|
LIST_FIELD_TYPE, NORMAL_FIELD_TYPE, PATH_FIELD_TYPE, UNDEFINED_FIELD_TYPE |
| Constructor Summary | |
|---|---|
RemoteResource(String protocol,
String remoteHost,
String remotePort,
String path,
String method)
Constructs a new RemoteResource with a target name composed from
the protocol, remoteHost,
remotePort, path,
and method parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this resource to the resource in the specified object. |
int |
getFieldType(String fieldName)
Returns if field name queried is a normal field type or if it is a path field type. |
String[] |
getKeys()
Gets keys for the Remoteresource. |
String |
getMethod()
Gets the method of the RemoteResource to be accessed. |
String |
getPath()
Gets the path of the RemoteResource. |
String |
getProtocol()
Gets the transport protocol required to access the RemoteResource. |
String |
getRemoteHost()
Gets the host name of the RemoteResource. |
String |
getRemotePort()
Gets the port of the RemoteResource. |
int |
getRepeatingFieldIndex()
Returns the index into the keys of the field whose value repeats in the parent hierarchy of the Remoteresource. |
int |
getRepeatingFieldTerminatingIndex()
Returns the terminating index of the repeating field. |
String |
getType()
Gets the type of this resource ( RemoteResource). |
protected void |
init(String[] values,
int len,
long seed,
String method,
boolean showAction)
|
protected Resource |
makeParent()
Gets a Resource object that represents the parent of the
current RemoteResource. |
protected void |
writeResourceString(StringBuffer buf)
Writes a string representation of the resource to buffer. |
| Methods inherited from class weblogic.security.service.ResourceBase |
|---|
appendArrayValue, appendValue, getID, getParentResource, getValues, hashCode, init, init, isTransitiveField, reset, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteResource(String protocol,
String remoteHost,
String remotePort,
String path,
String method)
RemoteResource with a target name composed from
the protocol, remoteHost,
remotePort, path,
and method parameters.
protocol - a String indicating the protocol that will
be used to communicate with the remote resourceremoteHost - a String indicating the hostname for the remote resource remotePort - a String indicating the port for the remote resource path - a String indicating the path for the remote resource method - a String indicating the method being accessed on the remote resource | Method Detail |
|---|
protected void init(String[] values,
int len,
long seed,
String method,
boolean showAction)
public String getType()
RemoteResource).
protected Resource makeParent()
Resource object that represents the parent of the
current RemoteResource. If the resource does not have a parent, the value of
null must be returned.
The parentage hierarchy for the RemoteResource (that is, the values returned from
successive calls to this method) is:
type=<remote>, protocol=http, remoteHost=myHost, remotePort=7001, path=/myWebapp/myWS, method=myMethod
type=<remote>, protocol=http, remoteHost=myHost, remotePort=7001, path=/myWebapp/myWS
type=<remote>, protocol=http, remoteHost=myHost, remotePort=7001, path=/myWebapp, method=myMethod
type=<remote>, protocol=http, remoteHost=myHost, remotePort=7001, path=/myWebapp
type=<remote>, protocol=http, remoteHost=myHost, remotePort=7001, method=myMethod
type=<remote>, protocol=http, remoteHost=myHost, remotePort=7001
type=<remote>, protocol=http, remoteHost=myHost, method=myMethod
type=<remote>, protocol=http, remoteHost=myHost
type=<remote>, protocol=http, method=myMethod
type=<remote>, protocol=http
type=<remote>, method=myMethod
type=<remote>
makeParent in class ResourceBaseResource object of the parent resource.public String[] getKeys()
Remoteresource.
getKeys in interface ResourcegetKeys in class ResourceBaseRemoteResource's keys.public int getFieldType(String fieldName)
If the fields are slash separated and are part of the inheritance hierarchy of the resources, it is a field type If not then the field is returned as a normal field type.
getFieldType in interface SelfDescribingResourcegetFieldType in class ResourceBasefieldName - the field name whose type is being queried on
SelfDescribingResourcepublic int getRepeatingFieldIndex()
Remoteresource.
getRepeatingFieldIndex in interface SelfDescribingResourcegetRepeatingFieldIndex in class ResourceBaseRemoteresource.public int getRepeatingFieldTerminatingIndex()
getRepeatingFieldTerminatingIndex in interface SelfDescribingResourcegetRepeatingFieldTerminatingIndex in class ResourceBasepublic String getProtocol()
RemoteResource.
RemoteResource.public String getRemoteHost()
RemoteResource.
RemoteResource.public String getRemotePort()
RemoteResource.
RemoteResource.public String getPath()
RemoteResource.
RemoteResource.public String getMethod()
RemoteResource to be accessed.
RemoteResource to be accessed.public boolean equals(Object obj)
equals in interface Resourceequals in class ResourceBaseobj - the other resource with which to compare this resource.
TRUE if the resource passed in matches this resource,
and FALSE otherwise.Object.equals(Object)protected void writeResourceString(StringBuffer buf)
ResourceBaseSubclasses should override this method if their string representation is different.
writeResourceString in class ResourceBasebuf - buffer to write to.
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-07 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||