Tabnine Logo
OwsHttpClientImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.deegree.protocol.ows.http.OwsHttpClientImpl
constructor

Best Java code snippets using org.deegree.protocol.ows.http.OwsHttpClientImpl.<init> (Showing top 5 results out of 315)

origin: deegree/deegree3

/**
 * Creates a new {@link CSWClient} instance.
 * 
 * @param capaUrl
 *            url of a CSW capabilities document, usually this is a <code>GetCapabilities</code> request to the
 *            service, must not be <code>null</code>
 * @param connectionTimeout
 *            the timeout for get/post requests in milliseconds, 0 is interpreted as an infinite timeout (default)
 * @throws OWSExceptionReport
 *             if the server replied with a service exception report
 * @throws XMLStreamException
 * @throws IOException
 *             if a communication/network problem occured
 */
public CSWClient( URL capaUrl, int connectionTimeout, int readTimeout ) throws OWSExceptionReport,
            XMLStreamException, IOException {
  super( capaUrl, new OwsHttpClientImpl( connectionTimeout, readTimeout, null, null ) );
}
origin: deegree/deegree3

  this.httpClient = httpClient;
} else {
  this.httpClient = new OwsHttpClientImpl();
origin: deegree/deegree3

/**
 * Creates a new {@link AbstractOWSClient} instance from the given capabilities document.
 * 
 * @param capabilities
 *            OWS capabilities document, must not be <code>null</code>
 * @param httpClient
 *            client for customizing HTTP communication, can be <code>null</code>
 * @throws OWSExceptionReport
 *             if the server replied with a service exception report
 * @throws XMLStreamException
 * @throws IOException
 *             if a communication/network problem occured
 */
protected AbstractOWSClient( XMLAdapter capabilities, OwsHttpClient httpClient ) throws OWSExceptionReport,
            XMLStreamException, IOException {
  if ( capabilities == null ) {
    throw new NullPointerException( "Capabilities must not be null." );
  }
  try {
    capaBaseUrl = getGetUrl( "GetCapabilities" );
  } catch ( Exception e ) {
    LOG.warn( "No GetCapabilities URL available." );
  }
  if ( httpClient != null ) {
    this.httpClient = httpClient;
  } else {
    this.httpClient = new OwsHttpClientImpl();
  }
  initCapabilities( capabilities );
}
origin: deegree/deegree3

/**
 * @param url
 * @param connectionTimeout
 *            default is 5 seconds
 * @param requestTimeout
 *            default is 60 seconds
 * @param user
 *            http basic username
 * @param pass
 *            http basic password
 * @throws XMLStreamException
 * @throws OWSExceptionReport
 * @throws IOException
 */
public WMSClient( URL url, int connectionTimeout, int requestTimeout, String user, String pass )
            throws IOException, OWSExceptionReport, XMLStreamException {
  super( url, new OwsHttpClientImpl( connectionTimeout * 1000, requestTimeout * 1000, user, pass ) );
  this.connectionTimeout = connectionTimeout;
  this.requestTimeout = requestTimeout;
  capaDoc.parseWMSSpecificCapabilities( getOperations() );
  checkCapabilities();
  this.httpBasicUser = user;
  this.httpBasicPass = pass;
}
origin: deegree/deegree3

private OwsHttpClient createOwsHttpClient( RemoteWMTSConfig config ) {
  int connTimeout = DEFAULT_CONNECTION_TIMEOUT_SECS;
  if ( config.getConnectionTimeout() != null ) {
    connTimeout = config.getConnectionTimeout();
  }
  int reqTimeout = DEFAULT_REQUEST_TIMEOUT_SECS;
  if ( config.getRequestTimeout() != null ) {
    reqTimeout = config.getRequestTimeout();
  }
  AuthenticationType type = config.getAuthentication() == null ? null : config.getAuthentication().getValue();
  String user = null;
  String pass = null;
  if ( type instanceof HTTPBasicAuthenticationType ) {
    HTTPBasicAuthenticationType basic = (HTTPBasicAuthenticationType) type;
    user = basic.getUsername();
    pass = basic.getPassword();
  }
  return new OwsHttpClientImpl( connTimeout * 1000, reqTimeout * 1000, user, pass );
}
org.deegree.protocol.ows.httpOwsHttpClientImpl<init>

Javadoc

Creates a new OwsHttpClientImpl instance without HTTP authentication and default timeouts.

Popular methods of OwsHttpClientImpl

  • getInitializedHttpClient
  • normalizeGetUrl
  • setCredentials
  • setProxies
  • setTimeouts

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now