org.gvsig.remoteclient.ogc
Class OGCServiceInformation

java.lang.Object
  extended by org.gvsig.remoteclient.ogc.OGCServiceInformation
Direct Known Subclasses:
WCSServiceInformation, WFSServiceInformation, WMSServiceInformation, WMTSServiceInformation

public abstract class OGCServiceInformation
extends java.lang.Object


Field Summary
 java.lang.String online_resource
           
protected  java.util.HashMap operationsGet
           
protected  java.util.HashMap operationsPost
           
 
Constructor Summary
OGCServiceInformation()
           
 
Method Summary
 void addOperation(java.lang.String operation, int protocol)
          Add a new supported operation
 void addOperation(java.lang.String operation, int protocol, java.lang.String onlineResource)
          Add a new supported operation
abstract  OGCClientOperation createOperation(java.lang.String name)
           
abstract  OGCClientOperation createOperation(java.lang.String name, java.lang.String onlineResource)
           
 java.lang.String getOnline_resource()
           
 java.lang.String getOnlineResource(java.lang.String operation)
          Gets the online resource for a concrete operation.
 java.lang.String getOnlineResource(java.lang.String operation, int protocol)
          Gest the online resource for a concrete operation
 java.util.Hashtable getSupportedOperationsByName()
          Get a hash map with the supported operations
 boolean isOperationSupported(java.lang.String operationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

online_resource

public java.lang.String online_resource

operationsGet

protected java.util.HashMap operationsGet

operationsPost

protected java.util.HashMap operationsPost
Constructor Detail

OGCServiceInformation

public OGCServiceInformation()
Method Detail

addOperation

public void addOperation(java.lang.String operation,
                         int protocol)
Add a new supported operation

Parameters:
operation - The operation to support
protocol - The HTTP protocol (Get or Post)

addOperation

public void addOperation(java.lang.String operation,
                         int protocol,
                         java.lang.String onlineResource)
Add a new supported operation

Parameters:
operation - The operation to support
protocol - The HTTP protocol (Get or Post)
onlineResource - The online resource

createOperation

public abstract OGCClientOperation createOperation(java.lang.String name)

createOperation

public abstract OGCClientOperation createOperation(java.lang.String name,
                                                   java.lang.String onlineResource)

getOnline_resource

public java.lang.String getOnline_resource()
Returns:
Returns the online_resource.

getOnlineResource

public java.lang.String getOnlineResource(java.lang.String operation)
Gets the online resource for a concrete operation. The default protocol is GET

Parameters:
operation - The operation
Returns:
The online resource

getOnlineResource

public java.lang.String getOnlineResource(java.lang.String operation,
                                          int protocol)
Gest the online resource for a concrete operation

Parameters:
operation - The operation
protocol - The HTTP protocol (Get or Post)
Returns:
The online resource

getSupportedOperationsByName

public java.util.Hashtable getSupportedOperationsByName()
Get a hash map with the supported operations

Returns:

isOperationSupported

public boolean isOperationSupported(java.lang.String operationName)


Copyright © 2014 gvSIG Association. All Rights Reserved.