org.geotools.data.wps
Class WPSFactory

java.lang.Object
  extended by org.geotools.process.impl.SingleProcessFactory
      extended by org.geotools.data.wps.WPSFactory
All Implemented Interfaces:
Factory, OptionalFactory, ProcessFactory

public class WPSFactory
extends SingleProcessFactory

This class acts as a ProcessFactory for any process. It handles converting related bean structures into a ProcessFactory object, and can be created from a describeprocess response and can be passed around as a process encompassing object for ease of use. This factory can make a representation of a process and its "execute" method will actually build a request to the server to execute the process and return the results.

Author:
GDavis

Constructor Summary
WPSFactory(ProcessDescriptionType pdt, java.net.URL serverUrl)
           
 
Method Summary
 Process create()
          Create a representation of a process
 org.opengis.util.InternationalString getDescription()
           
 java.lang.String getIdentifier()
           
 java.util.Map<java.lang.String,Parameter<?>> getParameterInfo()
           
 ProcessDescriptionType getProcessDescriptionType()
           
 java.util.Map<java.lang.String,Parameter<?>> getResultInfo(java.util.Map<java.lang.String,java.lang.Object> parameters)
           
 java.net.URL getServerURL()
           
 org.opengis.util.InternationalString getTitle()
          Name suitable for display to end user.
 java.lang.String getVersion()
           
 boolean supportsProgress()
           
 
Methods inherited from class org.geotools.process.impl.SingleProcessFactory
create, getDescription, getImplementationHints, getNames, getParameterInfo, getResultInfo, getTitle, getVersion, isAvailable, supportsProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WPSFactory

public WPSFactory(ProcessDescriptionType pdt,
                  java.net.URL serverUrl)
Method Detail

create

public Process create()
Create a representation of a process

Specified by:
create in class SingleProcessFactory

getDescription

public org.opengis.util.InternationalString getDescription()
Specified by:
getDescription in class SingleProcessFactory

getParameterInfo

public java.util.Map<java.lang.String,Parameter<?>> getParameterInfo()
Specified by:
getParameterInfo in class SingleProcessFactory

getResultInfo

public java.util.Map<java.lang.String,Parameter<?>> getResultInfo(java.util.Map<java.lang.String,java.lang.Object> parameters)
                                                           throws java.lang.IllegalArgumentException
Specified by:
getResultInfo in class SingleProcessFactory
Throws:
java.lang.IllegalArgumentException

getTitle

public org.opengis.util.InternationalString getTitle()
Description copied from class: SingleProcessFactory
Name suitable for display to end user.

Specified by:
getTitle in interface ProcessFactory
Overrides:
getTitle in class SingleProcessFactory
Returns:
A short name suitable for display in a user interface.

getIdentifier

public java.lang.String getIdentifier()

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in class SingleProcessFactory

supportsProgress

public boolean supportsProgress()
Specified by:
supportsProgress in class SingleProcessFactory

getProcessDescriptionType

public ProcessDescriptionType getProcessDescriptionType()

getServerURL

public java.net.URL getServerURL()


Copyright © 1996-2010 Geotools. All Rights Reserved.