Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
Mozilla::Embedding::Networking::URI Class Reference

#include <DotNETNetworking.h>

Collaboration diagram for Mozilla::Embedding::Networking::URI:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 URI (String *aSpec)
 URI (nsIURI *aURI)
 ~URI ()
ObjectClone ()
void Dispose ()
__property Stringget_Spec ()
__property void set_Spec (String *aSpec)
__property Stringget_PrePath ()
__property Stringget_Scheme ()
__property void set_Scheme (String *aScheme)
__property Stringget_UserPass ()
__property void set_UserPass (String *aUserPass)
__property Stringget_Username ()
__property void set_Username (String *aUsername)
__property Stringget_Password ()
__property void set_Password (String *aPassword)
__property Stringget_HostPort ()
__property void set_HostPort (String *aHostPort)
__property Stringget_Host ()
__property void set_Host (String *aHost)
__property Int32 get_Port ()
__property void set_Port (Int32 aPort)
__property Stringget_Path ()
__property void set_Path (String *aPath)
bool Equals (URI *aOther)
bool SchemeIs (String *aScheme)
StringResolve (String *aRelativePath)
__property Stringget_AsciiSpec ()
__property Stringget_AsciiHost ()
__property Stringget_OriginCharset ()

Private Attributes

nsIURImURI

Detailed Description

Definition at line 52 of file DotNETNetworking.h.


Constructor & Destructor Documentation

URI::URI ( String aSpec)

Definition at line 56 of file DotNETNetworking.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

URI::URI ( nsIURI aURI)

Definition at line 50 of file DotNETNetworking.cpp.

  : mURI(aURI)
{
  NS_IF_ADDREF(mURI);
}
URI::~URI ( )

Definition at line 70 of file DotNETNetworking.cpp.


Member Function Documentation

Definition at line 76 of file DotNETNetworking.cpp.

{
  nsCOMPtr<nsIURI> uriClone;

  if (mURI) {
    nsresult rv = mURI->Clone(getter_AddRefs(uriClone));
    ThrowIfFailed(rv);
  }

  return new URI(uriClone);
}

Here is the call graph for this function:

Definition at line 89 of file DotNETNetworking.cpp.

{
  NS_IF_RELEASE(mURI);

  GC::SuppressFinalize(this);
}
bool URI::Equals ( URI aOther)

Definition at line 284 of file DotNETNetworking.cpp.

{
  if (!mURI) {
    if (!aOther || !aOther->mURI) {
      return true;
    }

    return false;
  }

  PRBool equals;
  nsresult rv = mURI->Equals(aOther->mURI, &equals);
  ThrowIfFailed(rv);

  return equals;
}

Here is the call graph for this function:

Definition at line 338 of file DotNETNetworking.cpp.

{
  nsCAutoString asciiHost;
  nsresult rv = mURI->GetAsciiHost(asciiHost);
  ThrowIfFailed(rv);

  return CopyString(asciiHost);
}

Here is the call graph for this function:

Definition at line 328 of file DotNETNetworking.cpp.

{
  nsCAutoString asciiSpec;
  nsresult rv = mURI->GetAsciiSpec(asciiSpec);
  ThrowIfFailed(rv);

  return CopyString(asciiSpec);
}

Here is the call graph for this function:

Definition at line 227 of file DotNETNetworking.cpp.

{
  nsCAutoString host;
  nsresult rv = mURI->GetHost(host);
  ThrowIfFailed(rv);

  return CopyString(host);
}

Here is the call graph for this function:

Definition at line 207 of file DotNETNetworking.cpp.

{
  nsCAutoString hostPort;
  nsresult rv = mURI->GetHostPort(hostPort);
  ThrowIfFailed(rv);

  return CopyString(hostPort);
}

Here is the call graph for this function:

Definition at line 348 of file DotNETNetworking.cpp.

{
  nsCAutoString originalCharset;
  nsresult rv = mURI->GetOriginCharset(originalCharset);
  ThrowIfFailed(rv);

  return CopyString(originalCharset);
}

Here is the call graph for this function:

Definition at line 187 of file DotNETNetworking.cpp.

{
  nsCAutoString password;
  nsresult rv = mURI->GetPassword(password);
  ThrowIfFailed(rv);

  return CopyString(password);
}

Here is the call graph for this function:

Definition at line 264 of file DotNETNetworking.cpp.

{
  nsCAutoString path;
  nsresult rv = mURI->GetPath(path);
  ThrowIfFailed(rv);

  return CopyString(path);
}

Here is the call graph for this function:

Definition at line 247 of file DotNETNetworking.cpp.

{
  PRInt32 port;
  nsresult rv = mURI->GetPort(&port);
  ThrowIfFailed(rv);

  return port;
}

Here is the call graph for this function:

Definition at line 117 of file DotNETNetworking.cpp.

{
  nsCAutoString prePath;
  nsresult rv = mURI->GetPrePath(prePath);
  ThrowIfFailed(rv);

  return CopyString(prePath);
}

Here is the call graph for this function:

Definition at line 127 of file DotNETNetworking.cpp.

{
  nsCAutoString scheme;
  nsresult rv = mURI->GetScheme(scheme);
  ThrowIfFailed(rv);

  return CopyString(scheme);
}

Here is the call graph for this function:

Definition at line 97 of file DotNETNetworking.cpp.

{
  nsCAutoString spec;
  nsresult rv = mURI->GetSpec(spec);
  ThrowIfFailed(rv);

  return CopyString(spec);
}

Here is the call graph for this function:

Definition at line 167 of file DotNETNetworking.cpp.

{
  nsCAutoString username;
  nsresult rv = mURI->GetUsername(username);
  ThrowIfFailed(rv);

  return CopyString(username);
}

Here is the call graph for this function:

Definition at line 147 of file DotNETNetworking.cpp.

{
  nsCAutoString userPass;
  nsresult rv = mURI->GetUserPass(userPass);
  ThrowIfFailed(rv);

  return CopyString(userPass);
}

Here is the call graph for this function:

String * URI::Resolve ( String aRelativePath)

Definition at line 316 of file DotNETNetworking.cpp.

{
  nsCAutoString relativePath, resolvedPath;
  CopyString(aRelativePath, relativePath);

  nsresult rv = mURI->Resolve(relativePath, resolvedPath);
  ThrowIfFailed(rv);

  return CopyString(resolvedPath);
}

Here is the call graph for this function:

bool URI::SchemeIs ( String aScheme)

Definition at line 302 of file DotNETNetworking.cpp.

{
  nsCAutoString scheme;
  CopyString(aScheme, scheme);

  PRBool isScheme = PR_FALSE;

  nsresult rv = mURI->SchemeIs(scheme.get(), &isScheme);
  ThrowIfFailed(rv);

  return isScheme;
}

Here is the call graph for this function:

void URI::set_Host ( String aHost)

Definition at line 237 of file DotNETNetworking.cpp.

{
  nsCAutoString host;
  CopyString(aHost, host);

  nsresult rv = mURI->SetHost(host);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_HostPort ( String aHostPort)

Definition at line 217 of file DotNETNetworking.cpp.

{
  nsCAutoString hostPort;
  CopyString(aHostPort, hostPort);

  nsresult rv = mURI->SetHostPort(hostPort);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_Password ( String aPassword)

Definition at line 197 of file DotNETNetworking.cpp.

{
  nsCAutoString password;
  CopyString(aPassword, password);

  nsresult rv = mURI->SetPassword(password);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_Path ( String aPath)

Definition at line 274 of file DotNETNetworking.cpp.

{
  nsCAutoString path;
  CopyString(aPath, path);

  nsresult rv = mURI->SetPath(path);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_Port ( Int32  aPort)

Definition at line 257 of file DotNETNetworking.cpp.

{
  nsresult rv = mURI->SetPort(aPort);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_Scheme ( String aScheme)

Definition at line 137 of file DotNETNetworking.cpp.

{
  nsCAutoString scheme;
  CopyString(aScheme, scheme);

  nsresult rv = mURI->SetScheme(scheme);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_Spec ( String aSpec)

Definition at line 107 of file DotNETNetworking.cpp.

{
  nsCAutoString spec;
  CopyString(aSpec, spec);

  nsresult rv = mURI->SetSpec(spec);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_Username ( String aUsername)

Definition at line 177 of file DotNETNetworking.cpp.

{
  nsCAutoString username;
  CopyString(aUsername, username);

  nsresult rv = mURI->SetUsername(username);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:

void URI::set_UserPass ( String aUserPass)

Definition at line 157 of file DotNETNetworking.cpp.

{
  nsCAutoString userPass;
  CopyString(aUserPass, userPass);

  nsresult rv = mURI->SetUserPass(userPass);
  ThrowIfFailed(rv);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 94 of file DotNETNetworking.h.


The documentation for this class was generated from the following files: